VSTGUI  4.3
Graphical User Interface Framework not only for VST plugins
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Groups Pages
CGraphicsPath Class Referenceabstract

Graphics Path Object. More...

+ Inheritance diagram for CGraphicsPath:
+ Collaboration diagram for CGraphicsPath:

Public Member Functions

virtual bool isTypeOf (IdStringPtr s) const
 
virtual CBaseObjectnewCopy () const
 
virtual void beforeDelete ()
 
Creating gradients
virtual CGradientcreateGradient (double color1Start, double color2Start, const CColor &color1, const CColor &color2)=0
 creates a new gradient object, you must release it with forget() when you're done with it More...
 
Adding Elements
virtual void addArc (const CRect &rect, double startAngle, double endAngle, bool clockwise)
 
virtual void addEllipse (const CRect &rect)
 
virtual void addRect (const CRect &rect)
 
virtual void addPath (const CGraphicsPath &path, CGraphicsTransform *transformation=0)
 
virtual void addLine (const CPoint &to)
 
virtual void addBezierCurve (const CPoint &control1, const CPoint &control2, const CPoint &end)
 
virtual void beginSubpath (const CPoint &start)
 
virtual void closeSubpath ()
 
void beginSubpath (CCoord x, CCoord y)
 
void addLine (CCoord x, CCoord y)
 
void addBezierCurve (CCoord cp1x, CCoord cp1y, CCoord cp2x, CCoord cp2y, CCoord x, CCoord y)
 
Helpers
void addRoundRect (const CRect &size, CCoord radius)
 
Hit Testing
virtual bool hitTest (const CPoint &p, bool evenOddFilled=false, CGraphicsTransform *transform=0)=0
 
States
virtual CPoint getCurrentPosition ()=0
 
virtual CRect getBoundingBox ()=0
 
Reference Counting Methods
virtual void forget ()
 decrease refcount and delete object if refcount == 0 More...
 
virtual void remember ()
 increase refcount More...
 
virtual int32_t getNbReference () const
 get refcount More...
 
Message Methods
virtual CMessageResult notify (CBaseObject *sender, IdStringPtr message)
 

Protected Types

typedef std::vector< Element > ElementList
 

Protected Member Functions

 CGraphicsPath ()
 
virtual void dirty ()=0
 platform object should be released More...
 

Protected Attributes

ElementList elements
 

Detailed Description

Graphics Path Object.

Member Typedef Documentation

typedef std::vector<Element> ElementList
protected

Constructor & Destructor Documentation

CGraphicsPath ( )
inlineprotected

Member Function Documentation

void addArc ( const CRect rect,
double  startAngle,
double  endAngle,
bool  clockwise 
)
virtual

add an arc to the path. Begins a new subpath if no elements were added before.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void addBezierCurve ( const CPoint control1,
const CPoint control2,
const CPoint end 
)
virtual

add a bezier curve to the path. A subpath must begin before

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void addBezierCurve ( CCoord  cp1x,
CCoord  cp1y,
CCoord  cp2x,
CCoord  cp2y,
CCoord  x,
CCoord  y 
)
inline

+ Here is the call graph for this function:

void addEllipse ( const CRect rect)
virtual

add an ellipse to the path. Begins a new subpath if no elements were added before.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void addLine ( const CPoint to)
virtual

add a line to the path. A subpath must begin before

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void addLine ( CCoord  x,
CCoord  y 
)
inline

+ Here is the call graph for this function:

void addPath ( const CGraphicsPath path,
CGraphicsTransform transformation = 0 
)
virtual

add another path to the path. Begins a new subpath if no elements were added before.

+ Here is the call graph for this function:

void addRect ( const CRect rect)
virtual

add a rectangle to the path. Begins a new subpath if no elements were added before.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void addRoundRect ( const CRect size,
CCoord  radius 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

virtual void beforeDelete ( )
inlinevirtualinherited

Reimplemented in CView.

+ Here is the caller graph for this function:

void beginSubpath ( const CPoint start)
virtual

begin a new subpath.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void beginSubpath ( CCoord  x,
CCoord  y 
)
inline

+ Here is the call graph for this function:

void closeSubpath ( )
virtual

close a subpath. A straight line will be added from the current point to the start point.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

virtual CGradient* createGradient ( double  color1Start,
double  color2Start,
const CColor color1,
const CColor color2 
)
pure virtual

creates a new gradient object, you must release it with forget() when you're done with it

Parameters
color1Startvalue between zero and one which defines the normalized start offset for color1
color2Startvalue between zero and one which defines the normalized start offset for color2
color1the first color of the gradient
color2the second color of the gradient
Returns
a new gradient object
virtual void dirty ( )
protectedpure virtual

platform object should be released

+ Here is the caller graph for this function:

virtual void forget ( )
inlinevirtualinherited

decrease refcount and delete object if refcount == 0

+ Here is the call graph for this function:

virtual CRect getBoundingBox ( )
pure virtual
virtual CPoint getCurrentPosition ( )
pure virtual
virtual int32_t getNbReference ( ) const
inlinevirtualinherited

get refcount

virtual bool hitTest ( const CPoint p,
bool  evenOddFilled = false,
CGraphicsTransform transform = 0 
)
pure virtual
virtual bool isTypeOf ( IdStringPtr  s) const
inlinevirtual
virtual CBaseObject* newCopy ( ) const
inlinevirtual
virtual void remember ( )
inlinevirtualinherited

increase refcount

+ Here is the caller graph for this function:

Member Data Documentation

ElementList elements
protected

The documentation for this class was generated from the following files: