Drag[en]gine Script Module DragonScript  1.23
Dragengine.Scenery.ECPCurveBezier3D Class Reference

Bezier-3D curve element class property for use with XML loading. More...

Inheritance diagram for Dragengine.Scenery.ECPCurveBezier3D:
Dragengine.Scenery.ElementClassProperty

Public Member Functions

void copyValue (ElementClass elementClass, ElementClassProperty property)
 Copy value from another element class property of the same type. More...
 
CurveBezier3D getCurve ()
 Curve. More...
 
ECPCurveBezier3D new (String name)
 Create property. More...
 
ECPCurveBezier3D new (String name, CurveBezier3D curve)
 Create property with initial path. More...
 
void setCurve (CurveBezier3D curve)
 Set curve. More...
 
void setValue (Object value)
 Set value of property from XML decoded value. More...
 
- Public Member Functions inherited from Dragengine.Scenery.ElementClassProperty
void dispose ()
 Dispose of element class property to break reference loops. More...
 
String getName ()
 Name. More...
 
bool logPreloadProblems (ElementClass elementClass, Console console)
 Log preloading problems. More...
 
void preloadResources (ElementClass elementClass, PreloadCounter counter)
 Preload resources if supported. More...
 

Detailed Description

Bezier-3D curve element class property for use with XML loading.

Curve is stored as CurveBezier3D instance. Curves are defined in XML element classes using a list of points. Each point is a list of vectors. If one vector is specified a sharp point is created with the handles and point set to the same vector. If three vectors are specified a point is created with the first vector as point, the second vector as first handle and the third vector as second handle. An example curve definition looks like this:

<list name='propertyName'>
<!-- first curve point as a sharp point -->
<list>
<vector x='0' y='0' z='0'/> <!-- point, handle1 and handle2 -->
</list>
<!-- second curve point as a regular point with handles -->
<list>
<vector x='2' y='3' z='1'/> <!-- point -->
<vector x='1.5' y='3' z='0.5'/> <!-- handle1 -->
<vector x='2.5' y='3' z='-0.5'/> <!-- handl2 -->
</list>
</list>

Curve points do not support being defined in StubWithProperties.

Member Function Documentation

◆ copyValue()

void Dragengine.Scenery.ECPCurveBezier3D.copyValue ( ElementClass  elementClass,
ElementClassProperty  property 
)

Copy value from another element class property of the same type.

Version
1.17

◆ getCurve()

CurveBezier3D Dragengine.Scenery.ECPCurveBezier3D.getCurve ( )

Curve.

◆ new() [1/2]

ECPCurveBezier3D Dragengine.Scenery.ECPCurveBezier3D.new ( String  name)

Create property.

Reimplemented from Dragengine.Scenery.ElementClassProperty.

◆ new() [2/2]

ECPCurveBezier3D Dragengine.Scenery.ECPCurveBezier3D.new ( String  name,
CurveBezier3D  curve 
)

Create property with initial path.

◆ setCurve()

void Dragengine.Scenery.ECPCurveBezier3D.setCurve ( CurveBezier3D  curve)

Set curve.

◆ setValue()

void Dragengine.Scenery.ECPCurveBezier3D.setValue ( Object  value)

Set value of property from XML decoded value.

Reimplemented from Dragengine.Scenery.ElementClassProperty.


The documentation for this class was generated from the following file: