geomerative index
Name RCommand
Examples
None available
Description
Constructors
RCommand(c);
RCommand(c, sp);
Methods
countControlPoints ( )   Use this to return the number of control points of the curve.

draw ( )   Use this method to draw the command.

getBounds ( )   Use this method to get the bounding box of the command.

getCommandType ( )   Use this to return the command type.

getCurvePoint ( )   Use this to return a specific point on the curve. It returns the RPoint for a given advancement parameter t on the curve.

getCurvePoints ( )   Use this to return the points on the curve. It returns the points in the way of an array of RPoint.

getCurveTangent ( )   Use this to return a specific tangent on the curve. It returns the RPoint representing the tangent vector for a given value of the advancement parameter t on the curve.

getCurveTangents ( )   Use this to return the tangents on the curve. It returns the vectors in the form of an array of RPoint.

getPoints ( )   Use this to return the start, control and end points of the curve. It returns the points in the way of an array of RPoint.

setSegmentAngle ( )   Use this to set the segmentator angle tolerance for the ADAPTATIVE segmentator and set the segmentator to ADAPTATIVE.

setSegmentGraphic ( )   Use this to set the segmentator graphic context.

setSegmentLength ( )   Use this to set the segmentator length for the UNIFORMLENGTH segmentator and set the segmentator to UNIFORMLENGTH.

setSegmentOffset ( )   Use this to set the segmentator offset for the UNIFORMLENGTH segmentator and set the segmentator to UNIFORMLENGTH.

setSegmentStep ( )   Use this to set the segmentator step for the UNIFORMSTEP segmentator and set the segmentator to UNIFORMSTEP.

setSegmentator ( )   Use this to set the segmentator type. ADAPTATIVE segmentator minimizes the number of segments avoiding perceptual artifacts like angles or cusps. Use this in order to have Polygons and Meshes with the fewest possible vertices. This can be useful when using or drawing a lot the same Polygon or Mesh deriving from this Shape. UNIFORMLENGTH segmentator is the slowest segmentator and it segments the curve on segments of equal length. This can be useful for very specific applications when for example drawing incrementaly a shape with a uniform speed. UNIFORMSTEP segmentator is the fastest segmentator and it segments the curve based on a constant value of the step of the curve parameter, or on the number of segments wanted. This can be useful when segmpointsentating very often a Shape or when we know the amount of segments necessary for our specific application.

transform ( )   Use this method to transform the command.

Usage Web & Application
Related