InlineLinesShape (object)

バージョン 1.12.0 で追加.

The InlineLinesShape inherits from the InlineGeometryShape object. It provides a shape type for Lines objects. The InlineLinesShape keeps a reference to the lines, so if the lines change (being deformed etc) the shape will updates its buffers automatically.

InlineLinesShape InlineLinesShape InlineLinesShape InlineGeometryShape InlineGeometryShape InlineLinesShape->InlineGeometryShape InlineShapeBase InlineShapeBase InlineGeometryShape->InlineShapeBase InlineEntityBase InlineEntityBase InlineShapeBase->InlineEntityBase InlineShape InlineShape InlineShapeBase->InlineShape InlineEntity InlineEntity InlineEntityBase->InlineEntity

/*
** Example: InlineLinesShape
*/

require InlineDrawing;
  
operator entry() {

  //Create a XYZ cross
  Lines lines = Lines();
  lines.addPoints( 6 );
  
  lines.setPosition( 0, Vec3(1,0,0) );
  lines.setPosition( 1, Vec3(-1,0,0) );
  lines.addSegment( 0, 1 );
  
  lines.setPosition( 2, Vec3(0,1,0) );
  lines.setPosition( 3, Vec3(0,-1,0) );
  lines.addSegment( 2, 3 );
  
  lines.setPosition( 4, Vec3(0,0,1) );
  lines.setPosition( 5, Vec3(0,0,-1) );
  lines.addSegment( 4, 5 );
  
  // create a shape
  InlineShape shape = InlineLinesShape('lines', lines);
  
}

/*
** Output:


*/

Methods

  InlineLinesShape ( in InlineLinesShape other )
  InlineLinesShape ( in String name, in Lines lines )
  InlineLinesShape ()
InlineLinesShape clone ? ()
Scalar getLineWidth ? ()
Ref<Lines> getLines ? ()
  setLineWidth ! ( in Scalar lineWidth )
  setLines ! ( in Lines lines )

Methods in detail

InlineLinesShape ( in InlineLinesShape other )

copy constructor


InlineLinesShape ( in String name, in Lines lines )

default constructor, taking a name and a Lines


InlineLinesShape ()

default constructor


InlineLinesShape InlineLinesShape.clone? ()

clone method


Scalar InlineLinesShape.getLineWidth? ()

returns the point size used for rendering


Ref<Lines> InlineLinesShape.getLines? ()

returns the Lines used by this shape


InlineLinesShape.setLineWidth! ( in Scalar lineWidth )

sets the point size used for rendering


InlineLinesShape.setLines! ( in Lines lines )

sets the Lines used by this shape