InlineCurvesShape.kl

Types

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.

/*
** 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:27: Creating temporary InlineLinesShape:
(stdin):15:19: error: no resolution for constructor InlineLinesShape(String, Curves)
(stdin):15:19: 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 )