InlineCurvesShape (object)

バージョン 1.12.0 で追加.

The InlineLinesShape inherits from the InlineShape 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.

InlineCurvesShape InlineCurvesShape InlineCurvesShape InlineGeometryShape InlineGeometryShape InlineCurvesShape->InlineGeometryShape InlineShapeBase InlineShapeBase InlineGeometryShape->InlineShapeBase InlineEntityBase InlineEntityBase InlineShapeBase->InlineEntityBase InlineShape InlineShape InlineShapeBase->InlineShape InlineEntity InlineEntity InlineEntityBase->InlineEntity

/*
** Example: InlineCurvesShape
*/

require InlineDrawing;
  
operator entry() {

  //Create curve circle
  Curves curves = Curves();
  curves.addLinearCircle( Xfo(), 5.0, 10 );
  
  // create a shape
  InlineShape shape = InlineLinesShape('circle', curves);
  
}

/*
** Output:
(stdin):15:23: Creating temporary InlineLinesShape:
(stdin):15:15: error: no resolution for constructor InlineLinesShape(String, Curves)
(stdin):15:15: Candidates are:
(internal):   function InlineLinesShape()
(internal):     Rejected because number of parameters does not match number of arguments
(internal):   function InlineLinesShape(RTVal)
(internal):     Rejected because number of parameters does not match number of arguments
(internal):   function InlineLinesShape(Ref<InlineLinesShape>)
(internal):     Rejected because number of parameters does not match number of arguments
(internal):   function InlineLinesShape(InlineLinesShape)
(internal):     Rejected because number of parameters does not match number of arguments
(internal):   function InlineLinesShape(String, Lines)
(internal):     Rejected because there is no conversion from Curves to Lines


*/

Methods

  InlineCurvesShape ( in InlineCurvesShape other )
  InlineCurvesShape ( in String name, in Curves curves )
  InlineCurvesShape ()
InlineCurvesShape clone ? ()
Curves getCurves ? ()
Scalar getLineWidth ? ()
  setCurves ! ( in Curves curves )
  setLineWidth ! ( in Scalar lineWidth )

Methods in detail

InlineCurvesShape ( in InlineCurvesShape other )

copy constructor


InlineCurvesShape ( in String name, in Curves curves )

default constructor, taking a name and a Curves


InlineCurvesShape ()

default constructor


InlineCurvesShape InlineCurvesShape.clone? ()

clone method


Curves InlineCurvesShape.getCurves? ()

returns the Curves used by this shape


Scalar InlineCurvesShape.getLineWidth? ()

returns the point size used for rendering


InlineCurvesShape.setCurves! ( in Curves curves )

sets the Curves used by this shape


InlineCurvesShape.setLineWidth! ( in Scalar lineWidth )

sets the point size used for rendering