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

Debug drawer. More...

Inheritance diagram for Dragengine.Scenery.DebugDrawer:

Public Member Functions

Constructors
DebugDrawer new ()
 Create debug drawer. More...
 
Management
DVector getPosition ()
 Pposition. More...
 
void setPosition (DVector position)
 Set position. More...
 
Quaternion getOrientation ()
 Orientation. More...
 
void setOrientation (Quaternion orientation)
 Set orientation. More...
 
Vector getScale ()
 Scaling. More...
 
void setScale (Vector scale)
 Set scaling. More...
 
bool getVisible ()
 Debug drawer is visible. More...
 
void setVisible (bool visible)
 Set if debug drawer is visible. More...
 
bool getXRay ()
 Debug drawer is rendered in x-ray mode. More...
 
void setXRay (bool xray)
 Set if debug drawer is rendered in x-ray mode. More...
 
Shapes
int getShapeCount ()
 Number of shapes. More...
 
void setShapeCount (int count)
 Set number of shapes. More...
 
void shapeSetPosition (int shape, Vector position)
 Set shae position. More...
 
void shapeSetOrientation (int shape, Quaternion orientation)
 Set shape orientation. More...
 
void shapeSetScale (int shape, Vector scale)
 Set shape scaling. More...
 
void shapeSetShapes (int shape, ShapeList shapes)
 Set shape shape list. More...
 
void shapeRemoveAllShapes (int shape)
 Remove all shapes from shape. More...
 
void shapeSetEdgeColor (int shape, Color color)
 Set shape edge color. More...
 
void shapeSetFillColor (int shape, Color color)
 Set shape fill color. More...
 
void shapeAddFace (int shape)
 Add empty face to shape. More...
 
void shapeFaceAddVertex (int shape, int face, Vector vertex)
 Add vertex to face in shape. More...
 
void shapeFaceCalculateNormal (int shape, int face)
 Calculate shape face normal. More...
 
void shapeRemoveAllFaces (int shape)
 Remove all faces from shape. More...
 
void shapeFinishedFaces (int shape)
 Finished adding faces. More...
 
void shapeSetFacesFromModel (int shape, Model model, Matrix matrix)
 Set shape faces from model. More...
 
void shapeSetFacesFromModel (int shape, Model model, String texture, Matrix matrix)
 Set shape faces from model for faces matching texture. More...
 

Detailed Description

Debug drawer.

This is a native class.

Member Function Documentation

◆ getOrientation()

Quaternion Dragengine.Scenery.DebugDrawer.getOrientation ( )

Orientation.

◆ getPosition()

DVector Dragengine.Scenery.DebugDrawer.getPosition ( )

Pposition.

◆ getScale()

Vector Dragengine.Scenery.DebugDrawer.getScale ( )

Scaling.

◆ getShapeCount()

int Dragengine.Scenery.DebugDrawer.getShapeCount ( )

Number of shapes.

◆ getVisible()

bool Dragengine.Scenery.DebugDrawer.getVisible ( )

Debug drawer is visible.

◆ getXRay()

bool Dragengine.Scenery.DebugDrawer.getXRay ( )

Debug drawer is rendered in x-ray mode.

◆ new()

DebugDrawer Dragengine.Scenery.DebugDrawer.new ( )

Create debug drawer.

◆ setOrientation()

void Dragengine.Scenery.DebugDrawer.setOrientation ( Quaternion  orientation)

Set orientation.

◆ setPosition()

void Dragengine.Scenery.DebugDrawer.setPosition ( DVector  position)

Set position.

◆ setScale()

void Dragengine.Scenery.DebugDrawer.setScale ( Vector  scale)

Set scaling.

◆ setShapeCount()

void Dragengine.Scenery.DebugDrawer.setShapeCount ( int  count)

Set number of shapes.

◆ setVisible()

void Dragengine.Scenery.DebugDrawer.setVisible ( bool  visible)

Set if debug drawer is visible.

◆ setXRay()

void Dragengine.Scenery.DebugDrawer.setXRay ( bool  xray)

Set if debug drawer is rendered in x-ray mode.

◆ shapeAddFace()

void Dragengine.Scenery.DebugDrawer.shapeAddFace ( int  shape)

Add empty face to shape.

Version
1.7

Call shapeFinishedFaces once finished changing faces.

◆ shapeFaceAddVertex()

void Dragengine.Scenery.DebugDrawer.shapeFaceAddVertex ( int  shape,
int  face,
Vector  vertex 
)

Add vertex to face in shape.

Version
1.7

Call shapeFinishedFaces once finished changing faces.

◆ shapeFaceCalculateNormal()

void Dragengine.Scenery.DebugDrawer.shapeFaceCalculateNormal ( int  shape,
int  face 
)

Calculate shape face normal.

Version
1.7

Call shapeFinishedFaces once finished changing faces.

◆ shapeFinishedFaces()

void Dragengine.Scenery.DebugDrawer.shapeFinishedFaces ( int  shape)

Finished adding faces.

Version
1.7

Notifies modules shape faces changed.

◆ shapeRemoveAllFaces()

void Dragengine.Scenery.DebugDrawer.shapeRemoveAllFaces ( int  shape)

Remove all faces from shape.

Version
1.7

Automatically calls shapeFinishedFaces.

◆ shapeRemoveAllShapes()

void Dragengine.Scenery.DebugDrawer.shapeRemoveAllShapes ( int  shape)

Remove all shapes from shape.

Exceptions
EOutOfBoundaryshape is less than 0 or larger than or equal to getShapeCount().

◆ shapeSetEdgeColor()

void Dragengine.Scenery.DebugDrawer.shapeSetEdgeColor ( int  shape,
Color  color 
)

Set shape edge color.

Exceptions
EOutOfBoundaryshape is less than 0 or larger than or equal to getShapeCount().

◆ shapeSetFacesFromModel() [1/2]

void Dragengine.Scenery.DebugDrawer.shapeSetFacesFromModel ( int  shape,
Model  model,
Matrix  matrix 
)

Set shape faces from model.

Version
1.7

Vertices are transformed by matrix. Automatically calls shapeFinishedFaces.

◆ shapeSetFacesFromModel() [2/2]

void Dragengine.Scenery.DebugDrawer.shapeSetFacesFromModel ( int  shape,
Model  model,
String  texture,
Matrix  matrix 
)

Set shape faces from model for faces matching texture.

Version
1.7

Vertices are transformed by matrix. Automatically calls shapeFinishedFaces.

◆ shapeSetFillColor()

void Dragengine.Scenery.DebugDrawer.shapeSetFillColor ( int  shape,
Color  color 
)

Set shape fill color.

Exceptions
EOutOfBoundaryshape is less than 0 or larger than or equal to getShapeCount().

◆ shapeSetOrientation()

void Dragengine.Scenery.DebugDrawer.shapeSetOrientation ( int  shape,
Quaternion  orientation 
)

Set shape orientation.

Exceptions
EOutOfBoundaryshape is less than 0 or larger than or equal to getShapeCount().

◆ shapeSetPosition()

void Dragengine.Scenery.DebugDrawer.shapeSetPosition ( int  shape,
Vector  position 
)

Set shae position.

Exceptions
EOutOfBoundaryshape is less than 0 or larger than or equal to getShapeCount().

◆ shapeSetScale()

void Dragengine.Scenery.DebugDrawer.shapeSetScale ( int  shape,
Vector  scale 
)

Set shape scaling.

Exceptions
EOutOfBoundaryshape is less than 0 or larger than or equal to getShapeCount().

◆ shapeSetShapes()

void Dragengine.Scenery.DebugDrawer.shapeSetShapes ( int  shape,
ShapeList  shapes 
)

Set shape shape list.

Exceptions
EOutOfBoundaryshape is less than 0 or larger than or equal to getShapeCount().

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