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
_autoRotation
Calculate the Rotation ?boolean
_hasSpaceobject
Has a SpaceObject?boolean
_rotation3d
Uses 3d Rotation?static IVector3
DEG180X
Constant for 180 degree.static IVector3
DEG180Y
static IVector3
DEG180Z
static IVector3
DEG270X
Constant for 270 degree.static IVector3
DEG270Y
static IVector3
DEG270Z
static IVector3
DEG45X
Constant for 45 degree.static IVector3
DEG45Y
static IVector3
DEG45Z
static IVector3
DEG90X
Constant for 90 degree.static IVector3
DEG90Y
static IVector3
DEG90Z
boolean
dynamic
does the Drawable3d have dynamic subelements?java.util.Map<java.lang.String,java.lang.Object>
properties
The 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 void
addPrimitive(Primitive3d p)
Adds a primitivejava.lang.Object
getBoundValue(java.lang.Object obj, java.lang.Object prop, IViewport3d viewport)
Gets the bound value for a property.java.util.List<Primitive3d>
getPrimitives3d()
java.lang.Object
getProperty(java.lang.String name)
Returns a property.java.util.Set<?>
getPropertyNames()
Returns all of the properties.boolean
hasProperty(java.lang.String name)
Tests if the given property name exists If an property isnull
it existsboolean
hasSpaceobject()
boolean
isAutoRotation()
boolean
isDynamic()
boolean
isRotation3d()
void
removePrimitive(Primitive3d p)
Removes a primitive from all layers in the combiner.void
setAutoRotation(boolean _autoRotation)
void
setDynamic(boolean dynamic)
void
setHasSpaceobject(boolean hasSpaceobject)
void
setPrimitives3d(java.util.List<Primitive3d> primitives3d)
void
setProperty(java.lang.String name, java.lang.Object value)
Sets a propertyvoid
setRotation3d(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:
getProperty
in interfaceIPropertyObject
- Parameters:
name
- name of the property- Returns:
- the property
-
getPropertyNames
public java.util.Set<?> getPropertyNames()
Returns all of the properties.- Specified by:
getPropertyNames
in interfaceIPropertyObject
- Returns:
- the properties
-
setProperty
public void setProperty(java.lang.String name, java.lang.Object value)
Sets a property- Specified by:
setProperty
in interfaceIPropertyObject
- Parameters:
name
- name of the propertyvalue
- value of the property
-
hasProperty
public boolean hasProperty(java.lang.String name)
Description copied from interface:IPropertyObject
Tests if the given property name exists If an property isnull
it exists- Specified by:
hasProperty
in interfaceIPropertyObject
- Parameters:
name
- the name of the property to test- Returns:
true
if 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)
-
-