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

void AttachContext (SMLCONTEXT *&context)
ERRVALUE CreateContext (RVC::GEOMETRIC &GeoObj)
void DestroyContext ()
SMLCONTEXTGetContext () const
 GRE_SCRIPTCONTEXT_DRAW ()
bool HasContext () const
ERRVALUE InitDraw (GRE_LAYERDC &layerdc)
ERRVALUE InitDraw (GRE_LAYER *layer, MGD::CONTEXT *gc, const TRANS2D_MAPGEN &trans, bool Is3D=false)
virtual ~GRE_SCRIPTCONTEXT_DRAW ()

Protected Member Functions

virtual void CreateSymbols ()

Constructor & Destructor Documentation

GRE_SCRIPTCONTEXT_DRAW::GRE_SCRIPTCONTEXT_DRAW  ) 
 

Constructor.

virtual GRE_SCRIPTCONTEXT_DRAW::~GRE_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]
 

Reimplemented in GRE_SCRIPTCONTEXT_STYLE, and GRE_SCRIPTCONTEXT_LABEL.

void GRE_SCRIPTCONTEXT_DRAW::DestroyContext  )  [inline]
 

Destroy attached SML context if any.

Definition at line 68 of file scriptcontext.h.

SMLCONTEXT* GRE_SCRIPTCONTEXT_DRAW::GetContext  )  const [inline]
 

Get attached SMLCONTEXT pointer.

Do not free or Destroy() the returned pointer.

Definition at line 73 of file scriptcontext.h.

bool GRE_SCRIPTCONTEXT_DRAW::HasContext  )  const [inline]
 

Determine if have SMLCONTEXT attached.

Definition at line 77 of file scriptcontext.h.

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


The documentation for this class was generated from the following file:
Generated on Wed May 31 15:28:39 2006 for TNTsdk by  doxygen 1.3.8-20040913