Drag[en]gine Script Module DragonScript
1.23
|
Bezier-3D curve element class property for use with XML loading. More...
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... | |
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:
Curve points do not support being defined in StubWithProperties.
void Dragengine.Scenery.ECPCurveBezier3D.copyValue | ( | ElementClass | elementClass, |
ElementClassProperty | property | ||
) |
Copy value from another element class property of the same type.
CurveBezier3D Dragengine.Scenery.ECPCurveBezier3D.getCurve | ( | ) |
Curve.
ECPCurveBezier3D Dragengine.Scenery.ECPCurveBezier3D.new | ( | String | name | ) |
Create property.
Reimplemented from Dragengine.Scenery.ElementClassProperty.
ECPCurveBezier3D Dragengine.Scenery.ECPCurveBezier3D.new | ( | String | name, |
CurveBezier3D | curve | ||
) |
Create property with initial path.
void Dragengine.Scenery.ECPCurveBezier3D.setCurve | ( | CurveBezier3D | curve | ) |
Set curve.
void Dragengine.Scenery.ECPCurveBezier3D.setValue | ( | Object | value | ) |
Set value of property from XML decoded value.
Reimplemented from Dragengine.Scenery.ElementClassProperty.