MIE::JOB_CAD Class Reference

#include <mie/cad.h>

Inheritance diagram for MIE::JOB_CAD:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 JOB_CAD (const FORMAT &format, const SETTINGS &settings)
virtual ~JOB_CAD ()
RVC::CADGetCADObj ()
ERRVALUE MakeCAD (const RVC::CAD::MAKEPARMS &MakeParms)
ERRVALUE OpenCAD (RVC::OBJECT::OPENMODE OpenMode=RVC::OBJECT::OPENMODE_Read)
ERRVALUE SaveBlock (CADBLOCK &Block, INT32 BlockNum)
INT32 SaveElement (INT32 BlockNum, CADBLOCK *Block, RVC::CAD::ELEMENT &Element)
bool ValidateElement (INT32 BlockNum, CADBLOCK *Block, const RVC::CAD::ELEMENT &Element)

Protected Member Functions

virtual ERRVALUE v_ImportEnd (RVC::OBJITEM &destobj)
virtual bool v_ImportNeedTempFile () const

Private Member Functions

void v_GeoreferenceChanged ()

Private Attributes

bool m_bNewBlock
RVC::CAD m_Obj
DRECT3D m_TestRect

Constructor & Destructor Documentation

MIE::JOB_CAD::JOB_CAD ( const FORMAT format,
const SETTINGS settings 
)
virtual MIE::JOB_CAD::~JOB_CAD (  )  [virtual]

Member Function Documentation

RVC::CAD& MIE::JOB_CAD::GetCADObj (  )  [inline]

Returns a reference to the RVC::CAD object for this job.

ERRVALUE MIE::JOB_CAD::MakeCAD ( const RVC::CAD::MAKEPARMS MakeParms  ) 

Make the CAD object.

The RVC::OBJITEM from this JOB will be used when creating the object

ERRVALUE MIE::JOB_CAD::OpenCAD ( RVC::OBJECT::OPENMODE  OpenMode = RVC::OBJECT::OPENMODE_Read  ) 

Open the CAD object.

The RVC::OBJITEM from this JOB will be used when opening the object

ERRVALUE MIE::JOB_CAD::SaveBlock ( CADBLOCK Block,
INT32  BlockNum 
)

Saves a CADBLOCK into the job's CAD object.

Assumes object was created by calling JOB_CAD::Make()

INT32 MIE::JOB_CAD::SaveElement ( INT32  BlockNum,
CADBLOCK Block,
RVC::CAD::ELEMENT Element 
)

Saves a ELEMENT into the job's CAD object.

Assumes object was created by calling JOB_CAD::Make()

void MIE::JOB_CAD::v_GeoreferenceChanged (  )  [private]
virtual ERRVALUE MIE::JOB_CAD::v_ImportEnd ( RVC::OBJITEM DestObj  )  [protected, virtual]

Finish the import.

Note, do not assume that v_ImportBegin was called or that anything else has been done to the job instance. In the case of importing as one object type and then converting to another, the v_ImportEnd will do the copy. Object conversion is done at the lowest possible JOB-derived class from which both the destination and source object type JOB classes are derived. So for example, since both JOB_VECTOR and JOB_CAD derive from JOB_GEOMETRIC, object conversion between them is handled in JOB_GEOMETRIC's v_ImportEnd.

Derived class should call base class implementation after doing its own cleanup.

Reimplemented from MIE::JOB_GEOMETRIC.

Reimplemented in MIE::JOB_CAD_LINKABLE.

virtual bool MIE::JOB_CAD::v_ImportNeedTempFile (  )  const [protected, virtual]

Determine if we need to import to a tempfile and then do something to transfer to the real file later.

If this returns true, v_ImportEnd() should copy/extract/convert the object from the temp file to its final home. Derived class should call base class implementation and return true if it says a temp file is needed

Reimplemented from MIE::JOB_GEOMETRIC.

Reimplemented in MIE::JOB_CAD_LINKABLE.

bool MIE::JOB_CAD::ValidateElement ( INT32  BlockNum,
CADBLOCK Block,
const RVC::CAD::ELEMENT Element 
)

Validate element against the extraction extents entered by the user that is stored in the SETTINGS::GetExtentsCoordRefSys().


Member Data Documentation

bool MIE::JOB_CAD::m_bNewBlock [private]

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

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