InlineDebugShape (object)

The InlineDebugShape inherits from the InlineShape for debug drawing purposes.

InlineDebugShape InlineDebugShape InlineDebugShape InlineShapeBase InlineShapeBase InlineDebugShape->InlineShapeBase InlineEntityBase InlineEntityBase InlineShapeBase->InlineEntityBase InlineShape InlineShape InlineShapeBase->InlineShape InlineEntity InlineEntity InlineEntityBase->InlineEntity

/*
** Example: InlineDebugShape
*/

require InlineDrawing;
  
operator entry() {

  InlineDebugShape shape('debug');
  
  // draw a couple of points
  shape.drawPoint(Vec3(5, 0, 0));
  shape.drawPoint(Vec3(0, 5, 0));
  shape.drawPoint(Vec3(0, 0, 5));
  
  // draw a couple of lines
  shape.drawLine(Vec3(0, 0, 0), Vec3(5, 0, 0));
  shape.drawLine(Vec3(0, 0, 0), Vec3(0, 5, 0));
  shape.drawLine(Vec3(0, 0, 0), Vec3(0, 0, 5));
  
  // for more methods check the method description below.
  
}

/*
** Output:


*/

Methods

  InlineDebugShape ( in InlineDebugShape other )
  InlineDebugShape ( in String name )
  InlineDebugShape ()
Index allocateLines ! ( in Size nbPoints, in Size nbLines )
Index allocatePoints ! ( in Size nbPoints )
Index allocateTriangles ! ( in Size nbPoints, in Size nbTriangles )
Index allocateVertices ! ( in Size nbVertices )
  clear ! ()
InlineDebugShape clone ? ()
  disablePen ! ()
InlineDebugShape drawArc ! ( in Xfo xfo, in Scalar radius, in Vec2 angleMinMax, in Integer detail )
InlineDebugShape drawAxes ! ( in Xfo xfo, in Boolean bothSides )
InlineDebugShape drawBBox ! ( in Xfo xfo, in Vec3 bboxmin, in Vec3 bboxmax )
InlineDebugShape drawCapsuleLines ! ( in Xfo xfo, in Scalar radius, in Scalar height, in Integer detail )
InlineDebugShape drawCircle ! ( in Xfo xfo, in Scalar radius, in Integer detail )
InlineDebugShape drawLine ! ( in Vec3 from, in Vec3 to )
InlineDebugShape drawLineSegments ! ( in Vec3 starts[], in Vec3 ends[] )
InlineDebugShape drawLineStrip ! ( in Vec3 points[] )
InlineDebugShape drawPoint ! ( in Vec3 pos )
InlineDebugShape drawPoints ! ( in Vec3 pos[] )
InlineDebugShape drawSegmentedLine ! ( in Vec3 from, in Vec3 to, in Size numSegments )
InlineDebugShape drawSegmentedLine ! ( in Vec3 from, in Vec3 to, in Size numSegments, in Scalar ratio )
InlineDebugShape drawSphereLines ! ( in Xfo xfo, in Scalar radius, in Integer detail )
InlineDebugShape drawSquare ! ( in Xfo xfo, in Scalar length, in Scalar width )
InlineDebugShape drawTriangle ! ( in Vec3 p0, in Vec3 p1, in Vec3 p2 )
InlineDebugShape drawTriangle ! ( in Vec3 p0, in Vec3 p1, in Vec3 p2, in Vec3 n )
InlineDebugShape drawTriangle ! ( in Vec3 p0, in Vec3 p1, in Vec3 p2, in Vec3 n0, in Vec3 n1, in Vec3 n2 )
InlineDebugShape drawTrianglesCone ! ( in Xfo xfo, in Scalar radius, in Scalar height, in Integer detail )
InlineDebugShape drawTrianglesCube ! ( in Xfo xfo, in Scalar width, in Scalar height, in Scalar length )
InlineDebugShape drawTrianglesPlane ! ( in Xfo xfo, in Scalar width, in Scalar height )
InlineDebugShape drawTrianglesSphere ! ( in Xfo xfo, in Scalar radius, in Integer detail )
GeometryAttributes getAttributes ? ()
Scalar getLineWidth ? ()
Scalar getPointSize ? ()
Xfo getXfo ? ()
  init ! ( in String name )
  reset ! ()
  setLineWidth ! ( in Scalar value )
  setPen ! ( in Color color, in Float32 radius )
  setPointSize ! ( in Scalar value )
  setXfo ! ( in Xfo xfo )

Methods in detail

InlineDebugShape ( in InlineDebugShape other )

copy constructor


InlineDebugShape ( in String name )


InlineDebugShape ()

default constructor


Index InlineDebugShape.allocateLines! ( in Size nbPoints, in Size nbLines )

allocates space for new lines


Index InlineDebugShape.allocatePoints! ( in Size nbPoints )

allocates space for new points


Index InlineDebugShape.allocateTriangles! ( in Size nbPoints, in Size nbTriangles )

allocates space for new lines


Index InlineDebugShape.allocateVertices! ( in Size nbVertices )

allocates space for new vertices


InlineDebugShape.clear! ()

clears the content of the InlineDebugShape


InlineDebugShape InlineDebugShape.clone? ()

clone method


InlineDebugShape.disablePen! ()

disables the current pen


InlineDebugShape InlineDebugShape.drawArc! ( in Xfo xfo, in Scalar radius, in Vec2 angleMinMax, in Integer detail )

draws a line arc around the Y axis given a transform for the arc, a radius, a angular min and max as a Vec3 and a detail setting. the detail describes the number of line segments of the circle (minimum of 3).

angleMinMax [minAngle, maxAngle], in radians


InlineDebugShape InlineDebugShape.drawAxes! ( in Xfo xfo, in Boolean bothSides )

draws a cross given a transform


InlineDebugShape InlineDebugShape.drawBBox! ( in Xfo xfo, in Vec3 bboxmin, in Vec3 bboxmax )

draws a line bounding box given a transform for the box, a minimum and maximum position.


InlineDebugShape InlineDebugShape.drawCapsuleLines! ( in Xfo xfo, in Scalar radius, in Scalar height, in Integer detail )

draws a capsule shape using lines. the detail describes the number of line segments for each circle (minimum of 3).


InlineDebugShape InlineDebugShape.drawCircle! ( in Xfo xfo, in Scalar radius, in Integer detail )

draws a line circle around the Y axis given a transform for the circle, a radius and a detail setting. the detail describes the number of line segments of the circle (minimum of 3).


InlineDebugShape InlineDebugShape.drawLine! ( in Vec3 from, in Vec3 to )

draws a line given two positions


InlineDebugShape InlineDebugShape.drawLineSegments! ( in Vec3 starts[], in Vec3 ends[] )

draws a line through all of the points provided


InlineDebugShape InlineDebugShape.drawLineStrip! ( in Vec3 points[] )

draws a line through all of the points provided


InlineDebugShape InlineDebugShape.drawPoint! ( in Vec3 pos )

draws a single point given a position


InlineDebugShape InlineDebugShape.drawPoints! ( in Vec3 pos[] )

draws a bunch of points


InlineDebugShape InlineDebugShape.drawSegmentedLine! ( in Vec3 from, in Vec3 to, in Size numSegments )

overloaded method, uses 0.5 for the ratio


InlineDebugShape InlineDebugShape.drawSegmentedLine! ( in Vec3 from, in Vec3 to, in Size numSegments, in Scalar ratio )

draws a segmented line given two positions, a number of segmentation segments (minimum of 2) and a segment ratio (0.0 to 1.0).


InlineDebugShape InlineDebugShape.drawSphereLines! ( in Xfo xfo, in Scalar radius, in Integer detail )

draws three line circles representing a sphere given a transform for the sphere, a radius and a detail setting. the detail describes the number of line segments for each circle (minimum of 3).


InlineDebugShape InlineDebugShape.drawSquare! ( in Xfo xfo, in Scalar length, in Scalar width )

draws a line square given a transform for the square, a length (along X), a width (along Z).


InlineDebugShape InlineDebugShape.drawTriangle! ( in Vec3 p0, in Vec3 p1, in Vec3 p2 )

draws a single triangle given only three positions


InlineDebugShape InlineDebugShape.drawTriangle! ( in Vec3 p0, in Vec3 p1, in Vec3 p2, in Vec3 n )

draws a single triangle given three positions and a single normal


InlineDebugShape InlineDebugShape.drawTriangle! ( in Vec3 p0, in Vec3 p1, in Vec3 p2, in Vec3 n0, in Vec3 n1, in Vec3 n2 )

draws a single triangle given three positions and three normals


InlineDebugShape InlineDebugShape.drawTrianglesCone! ( in Xfo xfo, in Scalar radius, in Scalar height, in Integer detail )

draws a triangle cone given a transform for the cone, a radius, a height (along Y) and a detail setting. the detail setting describes the segmentation of the cone circle (minimum of 3).


InlineDebugShape InlineDebugShape.drawTrianglesCube! ( in Xfo xfo, in Scalar width, in Scalar height, in Scalar length )

draws a triangle cube given a transform for the cube, a width (along X), a height (along Y), a length (along Z).


InlineDebugShape InlineDebugShape.drawTrianglesPlane! ( in Xfo xfo, in Scalar width, in Scalar height )

draws a triangle plane given a transform for the plane, a width (along X), a height (along Z).


InlineDebugShape InlineDebugShape.drawTrianglesSphere! ( in Xfo xfo, in Scalar radius, in Integer detail )

draws a triangle sphere given a transform for the sphere, a radius and a detail setting. the detail setting describes the number of segments along u and v of the sphere (minimum of 3).


GeometryAttributes InlineDebugShape.getAttributes? ()

returns the contained geometryattirbutes


Scalar InlineDebugShape.getLineWidth? ()

return the current line width used


Scalar InlineDebugShape.getPointSize? ()

return the current point size used


Xfo InlineDebugShape.getXfo? ()

gets the current transform


InlineDebugShape.init! ( in String name )


InlineDebugShape.reset! ()

resets all offsets of this InlineDebugShape


InlineDebugShape.setLineWidth! ( in Scalar value )

sets the current line width used


InlineDebugShape.setPen! ( in Color color, in Float32 radius )

sets the current pen


InlineDebugShape.setPointSize! ( in Scalar value )

sets the current point size used


InlineDebugShape.setXfo! ( in Xfo xfo )

sets the current transform