My Project
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
ParaEngine::CGDIGraphicsPath Class Reference

Public Member Functions

 CGDIGraphicsPath (const Vector3 *points, const BYTE *types, int count)
 
CGDIGraphicsPathClone () const
 
void Undo (int nStep=1)
 undo a certain amount of steps
 
void Redo (int nStep=1)
 redo a certain amount of steps
 
void Reset ()
 reset to be reused
 
void AddLine (const Vector3 &point1, const Vector3 &point2, const CGDIPen &pen)
 Add a line to the path, If point1=point2, the line will not draw, use AddPoint if you want to draw a point.
 
void AddLines (const Vector3 *points, int nNumPoints, const CGDIPen &pen)
 Add a polyline to the path.
 
void AddPoint (const Vector3 &point, const CGDIPen &pPen)
 Add a point to the path,.
 
void AddRectangle (const Vector3 *points, const CGDIPen &pen)
 Add a rectangle to the path,.
 
int GetPointCount () const
 Get the number of points in the path.
 
void AddClear (const Color &color)
 Add a clear opeartion of the render target to the path.
 
GDIPathElementoperator[] (int index)
 Get the state of whether the path has changed. More...
 
void Optimize ()
 Optimize the path to eliminate duplicate or unnecessary elements.
 
void UpdateVertices (int nOption=0)
 Updates the vertices.
 
void AddOperation (const GDIPathElement *pElement, byte operationtype)
 Add an operation to the figures.
 
void SetClip (const CGDIRegion &region)
 Set the current clipping rectangle for the path.
 
const CGDIRegionGetClip () const
 
vector< GDIPathElement >::iterator PathBegin ()
 The following two are for iteration of the GDIPathElement.
 
vector< GDIPathElement >::iterator PathEnd ()
 
list< GDIFigure >::iterator FigureBegin ()
 The following two are for iteration of the GDIFigure.
 
list< GDIFigure >::iterator FigureEnd ()
 

Protected Member Functions

void ClearFigures ()
 
void CalculateLineVertex (const Vector3 *points, int nNumPoints, vector< DXUT_SCREEN_VERTEX > &vertices, const CGDIPen &pPen)
 
void CalculateRectVertex (const Vector3 *points, int nNumPoints, vector< DXUT_SCREEN_VERTEX > &vertices, const CGDIPen &pPen)
 
void UpdateFigures (const GDIPathElement *pElement, D3DPRIMITIVETYPE PrimitiveType, const vector< DXUT_SCREEN_VERTEX > &vertices, const Matrix4 *matTransform, int nOption=0, int index=0)
 

Protected Attributes

vector< GDIPathElementm_elements
 
list< GDIFigurem_figures
 
LPDIRECT3DVERTEXBUFFER9 m_pVB
 
bool m_bNeedUpdate
 
CGDIRegion m_region
 

Member Function Documentation

§ operator[]()

GDIPathElement & CGDIGraphicsPath::operator[] ( int  index)

Get the state of whether the path has changed.

If the path has changed, we will need to update its vertices. Set the state of whether the path has changed. If the path has changed, we will need to update its vertices. This operator allows you to get a GDIPathElement at a given index If the position specified is greater than the size of the container, the result is undefined


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