public class Torus3d extends Primitive3d
ABSOLUTE_POSITION, ABSOLUTE_ROTATION, ABSOLUTE_SIZE, PRIMITIVE_TYPE_ARROW, PRIMITIVE_TYPE_BOX, PRIMITIVE_TYPE_CYLINDER, PRIMITIVE_TYPE_DIRECTIONALLIGHT, PRIMITIVE_TYPE_DOME, PRIMITIVE_TYPE_EFFECT, PRIMITIVE_TYPE_OBJECT3D, PRIMITIVE_TYPE_POINTLIGHT, PRIMITIVE_TYPE_QUAD, PRIMITIVE_TYPE_SKY, PRIMITIVE_TYPE_SOUND, PRIMITIVE_TYPE_SPHERE, PRIMITIVE_TYPE_TERRAIN, PRIMITIVE_TYPE_TEXT3D, PRIMITIVE_TYPE_TORUS, SHADOW_CAST, SHADOW_OFF, SHADOW_RECEIVE
Constructor and Description |
---|
Torus3d(double radius,
double innerRadius,
double outerRadius,
int circleSamples,
int radialSamples)
Creates default Tube.
|
Torus3d(Object position,
Object rotation,
Object size,
int absFlags,
Object c,
String materialpath,
String texturePath,
double innerRadius,
double outerRadius,
int circleSamples,
int radialSamples,
IParsedExpression drawcondition,
String shadowtype,
ArrayList<SpatialControl> controler)
Creates a new Cylinder3d drawable.
|
Modifier and Type | Method and Description |
---|---|
int |
getCircleSamples() |
double |
getInnerRadius() |
double |
getOuterRadius() |
int |
getRadialSamples() |
void |
setCircleSamples(int circleSamples) |
void |
setInnerRadius(double innerRadius) |
void |
setOuterRadius(double outerRadius) |
void |
setRadialSamples(int radialSamples) |
enableAbsolutePosition, enableAbsoluteRotation, enableAbsoluteSize, getColor, getControler, getDrawCondition, getMaterialPath, getShadowtype, getTexturePath, getType, isRelativePosition, isRelativeRotation, isRelativeSize, setColor, setControler, setDrawCondition, setMaterialPath, setShadowtype, setTexturePath, setType
bindPosition, bindRotation, bindSize, getPosition, getRotation, getSize, setPosition, setRotation, setSize
public Torus3d(double radius, double innerRadius, double outerRadius, int circleSamples, int radialSamples)
outerRadius
- innerRadius
- height
- public Torus3d(Object position, Object rotation, Object size, int absFlags, Object c, String materialpath, String texturePath, double innerRadius, double outerRadius, int circleSamples, int radialSamples, IParsedExpression drawcondition, String shadowtype, ArrayList<SpatialControl> controler)
position
- position or position-bindingxrotation
- xrotation or rotation-bindingyrotation
- yrotation or rotation-bindingzrotation
- zrotation or rotation-bindingsize
- size or size-bindingabsFlags
- flags for setting position, size and rotation as
absolutesc
- modulation color or bindingradius
- samples
- planes
- public double getInnerRadius()
public void setInnerRadius(double innerRadius)
_innerRadius
- the _innerRadius to setpublic double getOuterRadius()
public void setOuterRadius(double outerRadius)
_outerRadius
- the _outerRadius to setpublic int getCircleSamples()
public void setCircleSamples(int circleSamples)
_circleSamples
- the _circleSamples to setpublic int getRadialSamples()
public void setRadialSamples(int radialSamples)
_radialSamples
- the _radialSamples to setCopyright © 2013. All Rights Reserved.