public class Torus3d extends Primitive3d
ABSOLUTE_POSITION, ABSOLUTE_ROTATION, ABSOLUTE_SIZE, PRIMITIVE_TYPE_ARROW, PRIMITIVE_TYPE_BOX, PRIMITIVE_TYPE_CYLINDER, PRIMITIVE_TYPE_DOME, PRIMITIVE_TYPE_OBJECT3D, 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 texturePath,
double innerRadius,
double outerRadius,
int circleSamples,
int radialSamples,
IParsedExpression drawcondition,
String shadowtype)
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, getDrawCondition, getShadowtype, getTexturePath, getType, isRelativePosition, isRelativeRotation, isRelativeSize, setColor, setDrawCondition, setShadowtype, setTexturePath, setType
bindPosition, bindRotation, bindSize, getPosition, getRotation, getSize, isCreated, setCreated, 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 texturePath, double innerRadius, double outerRadius, int circleSamples, int radialSamples, IParsedExpression drawcondition, String shadowtype)
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 © 2012. All Rights Reserved.