RVC::CADELEMENT::DRAW Class Reference

CADELEMENT Interface class to render and/or transform CAD Elements into common types. More...

#include <rvc/cadelement.h>

Inheritance diagram for RVC::CADELEMENT::DRAW:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 DRAW ()
virtual ~DRAW ()
int DrawElement (const CADELEMENT &Element, const TRANS2D_AFFINE &BtoC)
ERRVALUE DrawLines (const CADELEMENT &Element, const POLYLINELIST &LineList)
ERRVALUE DrawPoints (const CADELEMENT &Element, const POLYLINE &Points)
ERRVALUE DrawSubRegion (const CADELEMENT &Element, const SUBREGION2D &SubRegion)
ERRVALUE DrawText (const CADELEMENT &Element, const MISTRING &string, const POLYLINELIST &LineList)

Private Member Functions

virtual int v_DrawElement (const CADELEMENT &Element, const TRANS2D_AFFINE &BtoC)
virtual ERRVALUE v_DrawLines (const CADELEMENT &Element, const POLYLINELIST &LineList)
virtual ERRVALUE v_DrawPoints (const CADELEMENT &Element, const POLYLINE &Points)
virtual ERRVALUE v_DrawSubRegion (const CADELEMENT &Element, const SUBREGION2D &SubRegion)
virtual ERRVALUE v_DrawText (const CADELEMENT &Element, const MISTRING &string, const POLYLINELIST &LineList)

Detailed Description

CADELEMENT Interface class to render and/or transform CAD Elements into common types.


Constructor & Destructor Documentation

RVC::CADELEMENT::DRAW::DRAW (  )  [inline]

Reimplemented in RVC::CAD::DRAW.

virtual RVC::CADELEMENT::DRAW::~DRAW (  )  [inline, virtual]

Reimplemented in RVC::CAD::DRAW.


Member Function Documentation

int RVC::CADELEMENT::DRAW::DrawElement ( const CADELEMENT Element,
const TRANS2D_AFFINE BtoC 
) [inline]

First chance to render an element without any transformations to one of methods below.

Returns:
>0 if this method used the element and do not call methods below, ==0 if call the methods below, <0 error
Parameters:
Element Original CADELEMENT
BtoC Block to CAD transformation, methods below will do the transform before sending the converted element
ERRVALUE RVC::CADELEMENT::DRAW::DrawLines ( const CADELEMENT Element,
const POLYLINELIST LineList 
) [inline]

Transform CAD element to a set of one or more lines, only if the element can be represented as lines and not polygons.

Parameters:
Element Original CADELEMENT
LineList CADELEMENT transformed to lines
ERRVALUE RVC::CADELEMENT::DRAW::DrawPoints ( const CADELEMENT Element,
const POLYLINE Points 
) [inline]

Transform CAD element to a set of one or more singular points, only if the element can be represented as singular points.

Parameters:
Element Original CADELEMENT
Points CADELEMENT transformed to a POLYLINE of points
ERRVALUE RVC::CADELEMENT::DRAW::DrawSubRegion ( const CADELEMENT Element,
const SUBREGION2D SubRegion 
) [inline]

Transform CAD element to a SUBREGION2D, only if the element can be represented as a SUBREGION2D Multiple calls to this method will be done if one SUBREGION2D is not enough (CADELEMENT::TYPE_MultiPolygon).

Parameters:
Element Original CADELEMENT
SubRegion SubRegion to fill
ERRVALUE RVC::CADELEMENT::DRAW::DrawText ( const CADELEMENT Element,
const MISTRING string,
const POLYLINELIST LineList 
) [inline]

Called if the CAD element is a text label element.

Parameters:
Element Original CADELEMENT
string Text string
LineList First line is the baseline, all others after that are leader lines
virtual int RVC::CADELEMENT::DRAW::v_DrawElement ( const CADELEMENT Element,
const TRANS2D_AFFINE BtoC 
) [inline, private, virtual]
virtual ERRVALUE RVC::CADELEMENT::DRAW::v_DrawLines ( const CADELEMENT Element,
const POLYLINELIST LineList 
) [inline, private, virtual]
virtual ERRVALUE RVC::CADELEMENT::DRAW::v_DrawPoints ( const CADELEMENT Element,
const POLYLINE Points 
) [inline, private, virtual]
virtual ERRVALUE RVC::CADELEMENT::DRAW::v_DrawSubRegion ( const CADELEMENT Element,
const SUBREGION2D SubRegion 
) [inline, private, virtual]
virtual ERRVALUE RVC::CADELEMENT::DRAW::v_DrawText ( const CADELEMENT Element,
const MISTRING string,
const POLYLINELIST LineList 
) [inline, private, virtual]

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

Generated on Sun Oct 7 21:36:44 2012 for TNTsdk 2012 by  doxygen 1.6.1