Class DrawableCombiner3d
- java.lang.Object
-
- jadex.extension.envsupport.observer.graphics.drawable3d.AbstractVisual3d
-
- jadex.extension.envsupport.observer.graphics.drawable3d.DrawableCombiner3d
-
- All Implemented Interfaces:
IPropertyObject
public class DrawableCombiner3d extends AbstractVisual3d implements IPropertyObject
This drawable combines multiple 3ddrawables into a single drawable object.
-
-
Field Summary
Fields Modifier and Type Field Description boolean_autoRotationCalculate the Rotation ?boolean_hasSpaceobjectHas a SpaceObject?boolean_rotation3dUses 3d Rotation?static IVector3DEG180XConstant for 180 degree.static IVector3DEG180Ystatic IVector3DEG180Zstatic IVector3DEG270XConstant for 270 degree.static IVector3DEG270Ystatic IVector3DEG270Zstatic IVector3DEG45XConstant for 45 degree.static IVector3DEG45Ystatic IVector3DEG45Zstatic IVector3DEG90XConstant for 90 degree.static IVector3DEG90Ystatic IVector3DEG90Zbooleandynamicdoes the Drawable3d have dynamic subelements?java.util.Map<java.lang.String,java.lang.Object>propertiesThe properties
-
Constructor Summary
Constructors Constructor Description DrawableCombiner3d()Creates a new DrawableCombiner of size 1.0.DrawableCombiner3d(java.lang.Object position, java.lang.Object rotation, java.lang.Object size, boolean dynamic, boolean hasSpaceobject, boolean rotation3d, boolean autoRotation)Creates a new DrawableCombiner3d
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddPrimitive(Primitive3d p)Adds a primitivejava.lang.ObjectgetBoundValue(java.lang.Object obj, java.lang.Object prop, IViewport3d viewport)Gets the bound value for a property.java.util.List<Primitive3d>getPrimitives3d()java.lang.ObjectgetProperty(java.lang.String name)Returns a property.java.util.Set<?>getPropertyNames()Returns all of the properties.booleanhasProperty(java.lang.String name)Tests if the given property name exists If an property isnullit existsbooleanhasSpaceobject()booleanisAutoRotation()booleanisDynamic()booleanisRotation3d()voidremovePrimitive(Primitive3d p)Removes a primitive from all layers in the combiner.voidsetAutoRotation(boolean _autoRotation)voidsetDynamic(boolean dynamic)voidsetHasSpaceobject(boolean hasSpaceobject)voidsetPrimitives3d(java.util.List<Primitive3d> primitives3d)voidsetProperty(java.lang.String name, java.lang.Object value)Sets a propertyvoidsetRotation3d(boolean _rotation3d)-
Methods inherited from class jadex.extension.envsupport.observer.graphics.drawable3d.AbstractVisual3d
bindPosition, bindRotation, bindSize, getPosition, getRotation, getSize, setPosition, setRotation, setSize
-
-
-
-
Field Detail
-
properties
public java.util.Map<java.lang.String,java.lang.Object> properties
The properties
-
dynamic
public boolean dynamic
does the Drawable3d have dynamic subelements?
-
_hasSpaceobject
public boolean _hasSpaceobject
Has a SpaceObject?
-
_rotation3d
public boolean _rotation3d
Uses 3d Rotation?
-
_autoRotation
public boolean _autoRotation
Calculate the Rotation ?
-
DEG45X
public static final IVector3 DEG45X
Constant for 45 degree. In all three Dimensions (x,y,z)
-
DEG45Y
public static final IVector3 DEG45Y
-
DEG45Z
public static final IVector3 DEG45Z
-
DEG90X
public static final IVector3 DEG90X
Constant for 90 degree. In all three Dimensions (x,y,z)
-
DEG90Y
public static final IVector3 DEG90Y
-
DEG90Z
public static final IVector3 DEG90Z
-
DEG180X
public static final IVector3 DEG180X
Constant for 180 degree. In all three Dimensions (x,y,z)
-
DEG180Y
public static final IVector3 DEG180Y
-
DEG180Z
public static final IVector3 DEG180Z
-
DEG270X
public static final IVector3 DEG270X
Constant for 270 degree. In all three Dimensions (x,y,z)
-
DEG270Y
public static final IVector3 DEG270Y
-
DEG270Z
public static final IVector3 DEG270Z
-
-
Constructor Detail
-
DrawableCombiner3d
public DrawableCombiner3d()
Creates a new DrawableCombiner of size 1.0.
-
DrawableCombiner3d
public DrawableCombiner3d(java.lang.Object position, java.lang.Object rotation, java.lang.Object size, boolean dynamic, boolean hasSpaceobject, boolean rotation3d, boolean autoRotation)Creates a new DrawableCombiner3d
-
-
Method Detail
-
addPrimitive
public void addPrimitive(Primitive3d p)
Adds a primitive- Parameters:
p- the primitivesizeDefining- true if the added object should be the size-defining one
-
removePrimitive
public void removePrimitive(Primitive3d p)
Removes a primitive from all layers in the combiner.- Parameters:
p- the primitive
-
getBoundValue
public java.lang.Object getBoundValue(java.lang.Object obj, java.lang.Object prop, IViewport3d viewport)Gets the bound value for a property.- Returns:
- The bound value.
-
getProperty
public java.lang.Object getProperty(java.lang.String name)
Returns a property.- Specified by:
getPropertyin interfaceIPropertyObject- Parameters:
name- name of the property- Returns:
- the property
-
getPropertyNames
public java.util.Set<?> getPropertyNames()
Returns all of the properties.- Specified by:
getPropertyNamesin interfaceIPropertyObject- Returns:
- the properties
-
setProperty
public void setProperty(java.lang.String name, java.lang.Object value)Sets a property- Specified by:
setPropertyin interfaceIPropertyObject- Parameters:
name- name of the propertyvalue- value of the property
-
hasProperty
public boolean hasProperty(java.lang.String name)
Description copied from interface:IPropertyObjectTests if the given property name exists If an property isnullit exists- Specified by:
hasPropertyin interfaceIPropertyObject- Parameters:
name- the name of the property to test- Returns:
trueif and only if the property exists
-
hasSpaceobject
public boolean hasSpaceobject()
-
setHasSpaceobject
public void setHasSpaceobject(boolean hasSpaceobject)
-
getPrimitives3d
public java.util.List<Primitive3d> getPrimitives3d()
- Returns:
- the primitives3d
-
setPrimitives3d
public void setPrimitives3d(java.util.List<Primitive3d> primitives3d)
- Parameters:
primitives3d- the primitives3d to set
-
isRotation3d
public boolean isRotation3d()
- Returns:
- the _rotation3d
-
setRotation3d
public void setRotation3d(boolean _rotation3d)
- Parameters:
_rotation3d- the _rotation3d to set
-
isAutoRotation
public boolean isAutoRotation()
- Returns:
- the _autoRotation
-
setAutoRotation
public void setAutoRotation(boolean _autoRotation)
- Parameters:
_autoRotation- the _autoRotation to set
-
isDynamic
public boolean isDynamic()
-
setDynamic
public void setDynamic(boolean dynamic)
-
-