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 SummaryFields 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 SummaryConstructors 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 SummaryAll 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.AbstractVisual3dbindPosition, bindRotation, bindSize, getPosition, getRotation, getSize, setPosition, setRotation, setSize
 
- 
 
- 
- 
- 
Field Detail- 
propertiespublic java.util.Map<java.lang.String,java.lang.Object> properties The properties
 - 
dynamicpublic boolean dynamic does the Drawable3d have dynamic subelements?
 - 
_hasSpaceobjectpublic boolean _hasSpaceobject Has a SpaceObject?
 - 
_rotation3dpublic boolean _rotation3d Uses 3d Rotation?
 - 
_autoRotationpublic boolean _autoRotation Calculate the Rotation ?
 - 
DEG45Xpublic static final IVector3 DEG45X Constant for 45 degree. In all three Dimensions (x,y,z)
 - 
DEG45Ypublic static final IVector3 DEG45Y 
 - 
DEG45Zpublic static final IVector3 DEG45Z 
 - 
DEG90Xpublic static final IVector3 DEG90X Constant for 90 degree. In all three Dimensions (x,y,z)
 - 
DEG90Ypublic static final IVector3 DEG90Y 
 - 
DEG90Zpublic static final IVector3 DEG90Z 
 - 
DEG180Xpublic static final IVector3 DEG180X Constant for 180 degree. In all three Dimensions (x,y,z)
 - 
DEG180Ypublic static final IVector3 DEG180Y 
 - 
DEG180Zpublic static final IVector3 DEG180Z 
 - 
DEG270Xpublic static final IVector3 DEG270X Constant for 270 degree. In all three Dimensions (x,y,z)
 - 
DEG270Ypublic static final IVector3 DEG270Y 
 - 
DEG270Zpublic static final IVector3 DEG270Z 
 
- 
 - 
Constructor Detail- 
DrawableCombiner3dpublic DrawableCombiner3d() Creates a new DrawableCombiner of size 1.0.
 - 
DrawableCombiner3dpublic 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- 
addPrimitivepublic void addPrimitive(Primitive3d p) Adds a primitive- Parameters:
- p- the primitive
- sizeDefining- true if the added object should be the size-defining one
 
 - 
removePrimitivepublic void removePrimitive(Primitive3d p) Removes a primitive from all layers in the combiner.- Parameters:
- p- the primitive
 
 - 
getBoundValuepublic 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.
 
 - 
getPropertypublic java.lang.Object getProperty(java.lang.String name) Returns a property.- Specified by:
- getPropertyin interface- IPropertyObject
- Parameters:
- name- name of the property
- Returns:
- the property
 
 - 
getPropertyNamespublic java.util.Set<?> getPropertyNames() Returns all of the properties.- Specified by:
- getPropertyNamesin interface- IPropertyObject
- Returns:
- the properties
 
 - 
setPropertypublic void setProperty(java.lang.String name, java.lang.Object value)Sets a property- Specified by:
- setPropertyin interface- IPropertyObject
- Parameters:
- name- name of the property
- value- value of the property
 
 - 
hasPropertypublic 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 interface- IPropertyObject
- Parameters:
- name- the name of the property to test
- Returns:
- trueif and only if the property exists
 
 - 
hasSpaceobjectpublic boolean hasSpaceobject() 
 - 
setHasSpaceobjectpublic void setHasSpaceobject(boolean hasSpaceobject) 
 - 
getPrimitives3dpublic java.util.List<Primitive3d> getPrimitives3d() - Returns:
- the primitives3d
 
 - 
setPrimitives3dpublic void setPrimitives3d(java.util.List<Primitive3d> primitives3d) - Parameters:
- primitives3d- the primitives3d to set
 
 - 
isRotation3dpublic boolean isRotation3d() - Returns:
- the _rotation3d
 
 - 
setRotation3dpublic void setRotation3d(boolean _rotation3d) - Parameters:
- _rotation3d- the _rotation3d to set
 
 - 
isAutoRotationpublic boolean isAutoRotation() - Returns:
- the _autoRotation
 
 - 
setAutoRotationpublic void setAutoRotation(boolean _autoRotation) - Parameters:
- _autoRotation- the _autoRotation to set
 
 - 
isDynamicpublic boolean isDynamic() 
 - 
setDynamicpublic void setDynamic(boolean dynamic) 
 
- 
 
-