public class DrawableCombiner3d extends AbstractVisual3d implements IPropertyObject
Modifier and Type | Field and 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 and 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
|
Modifier and Type | Method and Description |
---|---|
void |
addPrimitive(Primitive3d p)
Adds a primitive
|
java.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 is
null it exists |
boolean |
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 property
|
void |
setRotation3d(boolean _rotation3d) |
bindPosition, bindRotation, bindSize, getPosition, getRotation, getSize, setPosition, setRotation, setSize
public java.util.Map<java.lang.String,java.lang.Object> properties
public boolean dynamic
public boolean _hasSpaceobject
public boolean _rotation3d
public boolean _autoRotation
public static final IVector3 DEG45X
public static final IVector3 DEG45Y
public static final IVector3 DEG45Z
public static final IVector3 DEG90X
public static final IVector3 DEG90Y
public static final IVector3 DEG90Z
public static final IVector3 DEG180X
public static final IVector3 DEG180Y
public static final IVector3 DEG180Z
public static final IVector3 DEG270X
public static final IVector3 DEG270Y
public static final IVector3 DEG270Z
public DrawableCombiner3d()
public DrawableCombiner3d(java.lang.Object position, java.lang.Object rotation, java.lang.Object size, boolean dynamic, boolean hasSpaceobject, boolean rotation3d, boolean autoRotation)
public void addPrimitive(Primitive3d p)
p
- the primitivesizeDefining
- true if the added object should be the size-defining
onepublic void removePrimitive(Primitive3d p)
p
- the primitivepublic java.lang.Object getBoundValue(java.lang.Object obj, java.lang.Object prop, IViewport3d viewport)
public java.lang.Object getProperty(java.lang.String name)
getProperty
in interface IPropertyObject
name
- name of the propertypublic java.util.Set<?> getPropertyNames()
getPropertyNames
in interface IPropertyObject
public void setProperty(java.lang.String name, java.lang.Object value)
setProperty
in interface IPropertyObject
name
- name of the propertyvalue
- value of the propertypublic boolean hasProperty(java.lang.String name)
IPropertyObject
null
it existshasProperty
in interface IPropertyObject
name
- the name of the property to testtrue
if and only if the property existspublic boolean hasSpaceobject()
public void setHasSpaceobject(boolean hasSpaceobject)
public java.util.List<Primitive3d> getPrimitives3d()
public void setPrimitives3d(java.util.List<Primitive3d> primitives3d)
primitives3d
- the primitives3d to setpublic boolean isRotation3d()
public void setRotation3d(boolean _rotation3d)
_rotation3d
- the _rotation3d to setpublic boolean isAutoRotation()
public void setAutoRotation(boolean _autoRotation)
_autoRotation
- the _autoRotation to setpublic boolean isDynamic()
public void setDynamic(boolean dynamic)