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 |
Map<String,Object> |
properties
The properties
|
Constructor and Description |
---|
DrawableCombiner3d()
Creates a new DrawableCombiner of size 1.0.
|
DrawableCombiner3d(Object position,
Object rotation,
Object size,
boolean hasSpaceobject,
boolean rotation3d,
boolean autoRotation)
Creates a new DrawableCombiner3d
|
Modifier and Type | Method and Description |
---|---|
void |
addPrimitive(Primitive3d p)
Adds a primitive
|
Object |
getBoundValue(Object obj,
Object prop,
IViewport3d viewport)
Gets the bound value for a property.
|
List<Primitive3d> |
getPrimitives3d() |
Object |
getProperty(String name)
Returns a property.
|
Set<?> |
getPropertyNames()
Returns all of the properties.
|
boolean |
hasProperty(String name)
Tests if the given property name exists
If an property is
null it exists |
boolean |
hasSpaceobject() |
boolean |
isAutoRotation() |
boolean |
isRotation3d() |
void |
removePrimitive(Primitive3d p)
Removes a primitive from all layers in the combiner.
|
void |
setAutoRotation(boolean _autoRotation) |
void |
setHasSpaceobject(boolean hasSpaceobject) |
void |
setPrimitives3d(List<Primitive3d> primitives3d) |
void |
setProperty(String name,
Object value)
Sets a property
|
void |
setRotation3d(boolean _rotation3d) |
bindPosition, bindRotation, bindSize, getPosition, getRotation, getSize, isCreated, setCreated, setPosition, setRotation, setSize
public boolean _hasSpaceobject
public boolean _rotation3d
public boolean _autoRotation
public static IVector3 DEG45X
public static IVector3 DEG45Y
public static IVector3 DEG45Z
public static IVector3 DEG90X
public static IVector3 DEG90Y
public static IVector3 DEG90Z
public static IVector3 DEG180X
public static IVector3 DEG180Y
public static IVector3 DEG180Z
public static IVector3 DEG270X
public static IVector3 DEG270Y
public static IVector3 DEG270Z
public DrawableCombiner3d()
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 Object getBoundValue(Object obj, Object prop, IViewport3d viewport)
public Object getProperty(String name)
getProperty
in interface IPropertyObject
name
- name of the propertypublic Set<?> getPropertyNames()
getPropertyNames
in interface IPropertyObject
public void setProperty(String name, Object value)
setProperty
in interface IPropertyObject
name
- name of the propertyvalue
- value of the propertypublic boolean hasProperty(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 List<Primitive3d> getPrimitives3d()
public void setPrimitives3d(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 setCopyright © 2012. All Rights Reserved.