Drag[en]gine Script Module DragonScript 1.35
Loading...
Searching...
No Matches
Dragengine.Scenery.DebugDrawer Class Reference

Debug drawer. More...

Inheritance diagram for Dragengine.Scenery.DebugDrawer:

Public Member Functions

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

Detailed Description

Debug drawer.

This is a native class.

Member Function Documentation

◆ getOrientation()

Quaternion Dragengine.Scenery.DebugDrawer.getOrientation ( )

Orientation.

References setPosition().

Referenced by setOrientation().

◆ getParentWorld()

World Dragengine.Scenery.DebugDrawer.getParentWorld ( )

Parent world or null if not added to a world.

Version
1.29

References setScale().

Referenced by getXRay().

◆ getPosition()

DVector Dragengine.Scenery.DebugDrawer.getPosition ( )

Pposition.

References getPosition().

Referenced by getPosition().

◆ getScale()

Vector Dragengine.Scenery.DebugDrawer.getScale ( )

Scaling.

Referenced by setScale().

◆ getShapeCount()

int Dragengine.Scenery.DebugDrawer.getShapeCount ( )

Number of shapes.

References setVisible().

Referenced by shapeSetOrientation().

◆ getVisible()

bool Dragengine.Scenery.DebugDrawer.getVisible ( )

Debug drawer is visible.

Referenced by setXRay().

◆ getXRay()

bool Dragengine.Scenery.DebugDrawer.getXRay ( )

Debug drawer is rendered in x-ray mode.

References getParentWorld().

Referenced by setShapeCount().

◆ new()

DebugDrawer Dragengine.Scenery.DebugDrawer.new ( )

Create debug drawer.

References new().

Referenced by new().

◆ setOrientation()

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

Set orientation.

References getOrientation().

Referenced by setScale().

◆ setPosition()

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

Set position.

Referenced by getOrientation().

◆ setScale()

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

Set scaling.

References getScale(), and setOrientation().

Referenced by getParentWorld().

◆ setShapeCount()

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

Set number of shapes.

References getXRay(), and setXRay().

Referenced by shapeSetScale().

◆ setVisible()

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

Set if debug drawer is visible.

Referenced by getShapeCount().

◆ setXRay()

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

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

References getVisible().

Referenced by setShapeCount().

◆ shapeAddFace()

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

Add empty face to shape.

Version
1.7

Call shapeFinishedFaces once finished changing faces.

References shapeRemoveAllShapes().

Referenced by shapeRemoveAllFaces().

◆ 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.

References shapeSetEdgeColor().

Referenced by shapeFinishedFaces().

◆ shapeFaceCalculateNormal()

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

Calculate shape face normal.

Version
1.7

Call shapeFinishedFaces once finished changing faces.

References shapeSetFillColor().

Referenced by shapeSetFacesFromModel().

◆ shapeFinishedFaces()

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

Finished adding faces.

Version
1.7

Notifies modules shape faces changed.

References shapeFaceAddVertex().

Referenced by shapeSetFacesFromModel().

◆ shapeRemoveAllFaces()

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

Remove all faces from shape.

Version
1.7

Automatically calls shapeFinishedFaces.

References shapeAddFace().

Referenced by shapeSetFacesFromModel().

◆ 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().

References shapeSetOrientation().

Referenced by shapeAddFace().

◆ 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().

References shapeSetScale().

Referenced by shapeFaceAddVertex().

◆ 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.

References shapeFaceCalculateNormal().

Referenced by shapeSetFacesFromModel().

◆ 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.

References shapeFinishedFaces(), shapeRemoveAllFaces(), and shapeSetFacesFromModel().

◆ 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().

References shapeSetShapes().

Referenced by shapeFaceCalculateNormal().

◆ 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().

References getShapeCount().

Referenced by shapeRemoveAllShapes().

◆ 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().

Referenced by shapeSetShapes().

◆ 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().

References setShapeCount().

Referenced by shapeSetEdgeColor().

◆ 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().

References shapeSetPosition().

Referenced by shapeSetFillColor().


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