GRE::SCRIPTCONTEXT_DRAW Class Reference

#include <gre/scriptcontext.h>

Inheritance diagram for GRE::SCRIPTCONTEXT_DRAW:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 SCRIPTCONTEXT_DRAW ()
virtual ~SCRIPTCONTEXT_DRAW ()
void AttachContext (SMLCONTEXT *&context)
ERRVALUE CreateContext (RVC::GEOMETRIC &GeoObj)
void DestroyContext ()
SMLCONTEXTGetContext () const
bool HasContext () const
ERRVALUE InitDraw (GRE::LAYERDC &layerdc)
ERRVALUE InitDraw (GRE::LAYER *layer, MGD::CONTEXT *gc, const TRANS2D_MAPGEN &trans, bool Is3D=false)
void SetScaleValues (double DesignScale, double CurrentScale)

Protected Member Functions

virtual void CreateSymbols ()

Constructor & Destructor Documentation

GRE::SCRIPTCONTEXT_DRAW::SCRIPTCONTEXT_DRAW (  ) 

Constructor.

virtual GRE::SCRIPTCONTEXT_DRAW::~SCRIPTCONTEXT_DRAW (  )  [virtual]

Destructor.


Member Function Documentation

void GRE::SCRIPTCONTEXT_DRAW::AttachContext ( SMLCONTEXT *&  context  ) 

Attach SML context.

After attachment the SCRIPTCONTEXT_DRAW 'owns' the context and will destroy it when necessary. The context pointer is passed by reference and set to NULL on return to prevent external use of the context.

Parameters:
context Context to attach, will set to NULL on return
ERRVALUE GRE::SCRIPTCONTEXT_DRAW::CreateContext ( RVC::GEOMETRIC GeoObj  ) 

Create SML context using RVC::GEOMETRIC object.

Parameters:
GeoObj Geometric object (VECTOR, TIN, CAD, etc)
virtual void GRE::SCRIPTCONTEXT_DRAW::CreateSymbols (  )  [protected, virtual]
void GRE::SCRIPTCONTEXT_DRAW::DestroyContext (  ) 

Destroy attached SML context if any.

SMLCONTEXT* GRE::SCRIPTCONTEXT_DRAW::GetContext (  )  const [inline]

Get attached SMLCONTEXT pointer.

Do not free or Destroy() the returned pointer.

bool GRE::SCRIPTCONTEXT_DRAW::HasContext (  )  const [inline]

Determine if have SMLCONTEXT attached.

ERRVALUE GRE::SCRIPTCONTEXT_DRAW::InitDraw ( GRE::LAYERDC layerdc  ) 

Initialize using layer drawing context.

ERRVALUE GRE::SCRIPTCONTEXT_DRAW::InitDraw ( GRE::LAYER layer,
MGD::CONTEXT gc,
const TRANS2D_MAPGEN trans,
bool  Is3D = false 
)

Initialize context variables for drawing.

Parameters:
layer Layer
gc Drawing device context
Is3D 3D setting for CartoScript
void GRE::SCRIPTCONTEXT_DRAW::SetScaleValues ( double  DesignScale,
double  CurrentScale 
)

Set scaling values.


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

Generated on Sun Oct 7 21:34:46 2012 for TNTsdk 2012 by  doxygen 1.6.1