public class Torus3d extends Primitive3d
Modifier and Type | Field and Description |
---|---|
protected int |
_circleSamples |
protected double |
_innerRadius |
protected double |
_outerRadius |
protected int |
_radialSamples |
ABSOLUTE_POSITION, ABSOLUTE_ROTATION, ABSOLUTE_SIZE, color_, drawcondition, enableDCPos, enableDCRot, enableDCSize, materialPath_, 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, renderinfos, SHADOW_CAST, SHADOW_OFF, SHADOW_RECEIVE, shadowtype, texturePath_, type
Constructor and Description |
---|
Torus3d(double radius,
double innerRadius,
double outerRadius,
int circleSamples,
int radialSamples)
Creates default Tube.
|
Torus3d(java.lang.Object position,
java.lang.Object rotation,
java.lang.Object size,
int absFlags,
java.lang.Object c,
java.lang.String materialpath,
java.lang.String texturePath,
double innerRadius,
double outerRadius,
int circleSamples,
int radialSamples,
IParsedExpression drawcondition,
java.lang.String shadowtype,
java.util.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
protected double _innerRadius
protected double _outerRadius
protected int _circleSamples
protected int _radialSamples
public Torus3d(double radius, double innerRadius, double outerRadius, int circleSamples, int radialSamples)
outerRadius
- innerRadius
- height
- public Torus3d(java.lang.Object position, java.lang.Object rotation, java.lang.Object size, int absFlags, java.lang.Object c, java.lang.String materialpath, java.lang.String texturePath, double innerRadius, double outerRadius, int circleSamples, int radialSamples, IParsedExpression drawcondition, java.lang.String shadowtype, java.util.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 set