InlinePointsShape (object)

バージョン 1.12.0 で追加.

The InlinePointsShape inherits from the InlineGeometryShape object. It provides a shape type for Points objects for direct rendering. The InlinePointsShape keeps a reference to the points, so if the points change (being deformed etc) the shape will updates its buffers automatically.

InlinePointsShape InlinePointsShape InlinePointsShape InlineGeometryShape InlineGeometryShape InlinePointsShape->InlineGeometryShape InlineShapeBase InlineShapeBase InlineGeometryShape->InlineShapeBase InlineEntityBase InlineEntityBase InlineShapeBase->InlineEntityBase InlineShape InlineShape InlineShapeBase->InlineShape InlineEntity InlineEntity InlineEntityBase->InlineEntity

Members

Scalar pointSize  
/*
** Example: InlinePointsShape
*/

require InlineDrawing;
  
operator entry() {

  // create some points
  Points points = Points();
  points.addPoints(12);
  
  // create a shape
  InlineShape shape = InlinePointsShape('points', points);
  
}

/*
** Output:


*/

Methods

  InlinePointsShape ( in InlinePointsShape other )
  InlinePointsShape ( in String name, in Points points )
  InlinePointsShape ()
InlinePointsShape clone ? ()
Scalar getPointSize ? ()
Ref<Points> getPoints ? ()
  setPointSize ! ( in Scalar pointSize )
  setPoints ! ( in Points points )

Methods in detail

InlinePointsShape ( in InlinePointsShape other )

copy constructor


InlinePointsShape ( in String name, in Points points )

default constructor, taking a name and a Points


InlinePointsShape ()

default constructor


InlinePointsShape InlinePointsShape.clone? ()

clone method


Scalar InlinePointsShape.getPointSize? ()

returns the point size used for rendering


Ref<Points> InlinePointsShape.getPoints? ()

returns the Points used by this shape


InlinePointsShape.setPointSize! ( in Scalar pointSize )

sets the point size used for rendering


InlinePointsShape.setPoints! ( in Points points )

sets the Points used by this shape