CurvePoint Class Reference
 
 
 
CurvePoint Class Reference

#include <icurvctl.h>

Inheritance diagram for CurvePoint:
MaxHeapOperators

Class Description

See also:
Class ICurve.

Description:
This class stores data about a single point on a curve used by the custom curve control.
Data Members:
Point2 p;

The curve point.

Point2 in;

The in tangent, relative to p.

Point2 out;

The out tangent, relative to p.

int flags;

One or more of the following values which describes the type of curve point:

CURVEP_BEZIER

Indicates the point is a bezier smooth point.

CURVEP_CORNER

Indicates the point is a corner point.

To get a Bezier Corner use:

CURVEP_CORNER & CURVEP_BEZIER

CURVEP_LOCKED_Y

Indicates the point is locked in Y.

CURVEP_LOCKED_X

Indicates the point is locked in X.

CURVEP_SELECTED

Indicates the point is selected.

CURVEP_ENDPOINT

Indicates a constrained endpoint on the curve.

CURVEP_NO_X_CONSTRAINT

Indicates a point should not be constrained to X.

Public Member Functions

  CurvePoint ()
CurvePoint operator= (const CurvePoint &rhs)

Public Attributes

Point2  p
Point2  in
Point2  out
int  flags

Constructor & Destructor Documentation

CurvePoint ( ) [inline]
                : flags(0)
        {
                p.x = 0.0f;
                p.y = 0.0f;
                in.x = 0.0f;
                in.y = 0.0f;
                out.x = 0.0f;
                out.y = 0.0f;
        }

Member Function Documentation

CurvePoint& operator= ( const CurvePoint rhs ) [inline]
        {
                p               = rhs.p;
                in              = rhs.in;
                out             = rhs.out;
                flags   = rhs.flags;
                return *this;
        }

Member Data Documentation