![]() |
VR-Forces 4.0.4 Class Documentation
|
This is the VPF Specification Factory class. More...
Public Member Functions | |
| DtVpfSpecFactory (DtVpfDatabase *Db) | |
| Constructor Takes a vpfDatabase pointer as a parameter to identify the theme of interest while creating a specification. | |
| virtual | ~DtVpfSpecFactory () |
| Destructor. | |
| virtual bool | init () |
| Initializes the the factory by loading the proper files. | |
| virtual bool | createNewSpecification (DtSpecification &spec, DtSpecificationID &specID, const DtVpfRow &row) |
| creates a new specification based on the input feature | |
| virtual DtVpfDatabase * | database () const |
| returns the database that is using this specification factory | |
| virtual void | findBounds (DtSpecification &spec, const std::vector< DtVpf3Coord * > *coords) |
| find the bounds of an areal feature. | |
Protected Member Functions | |
| virtual DtColor | findColor (DtString sedrisCode) |
| finds the color from the SEDRIS code. | |
| virtual std::vector< DtString > | tokenize (const std::string &str, const std::string &delim) |
| virtual bool | initColorMap () |
| virtual bool | initSpecMap () |
| virtual void | insert (DtSpecification &spec, DtVpfEnumeration &e) |
| virtual DtSpecification * | findSpec (const DtVpfEnumeration &e) |
| virtual DtVpfEnumeration | buildEnum (const DtVpfRow &row) |
Protected Attributes | |
| DtColorMap | myColorMap |
| DtVpfDatabase * | myDatabase |
| DtVpfSpecNode * | myRootSpecNode |
Private Member Functions | |
| DtVpfSpecFactory (const DtVpfSpecFactory &input) | |
| Copy constructor is private to prevent copying. | |
| DtVpfSpecFactory & | operator= (const DtVpfSpecFactory &input) |
| Assignment operator is private to prevent copying. | |
This is the VPF Specification Factory class.
It creates MaK specifications based on the input data row
| DtVpfSpecFactory::DtVpfSpecFactory | ( | const DtVpfSpecFactory & | input | ) | [private] |
Copy constructor is private to prevent copying.
Constructor Takes a vpfDatabase pointer as a parameter to identify the theme of interest while creating a specification.
| virtual DtVpfSpecFactory::~DtVpfSpecFactory | ( | ) | [virtual] |
Destructor.
| DtVpfSpecFactory& DtVpfSpecFactory::operator= | ( | const DtVpfSpecFactory & | input | ) | [private] |
Assignment operator is private to prevent copying.
| virtual bool DtVpfSpecFactory::init | ( | ) | [virtual] |
Initializes the the factory by loading the proper files.
| virtual bool DtVpfSpecFactory::createNewSpecification | ( | DtSpecification & | spec, |
| DtSpecificationID & | specID, | ||
| const DtVpfRow & | row | ||
| ) | [virtual] |
creates a new specification based on the input feature
| virtual DtVpfDatabase* DtVpfSpecFactory::database | ( | ) | const [virtual] |
returns the database that is using this specification factory
| virtual void DtVpfSpecFactory::findBounds | ( | DtSpecification & | spec, |
| const std::vector< DtVpf3Coord * > * | coords | ||
| ) | [virtual] |
find the bounds of an areal feature.
Accepts a specification and the coordinates for that feature. It determines the bounds and adds them to the specification.
| virtual DtColor DtVpfSpecFactory::findColor | ( | DtString | sedrisCode | ) | [protected, virtual] |
finds the color from the SEDRIS code.
Colors are loaded from the file "sedris_colormap.txt"
| virtual std::vector<DtString> DtVpfSpecFactory::tokenize | ( | const std::string & | str, |
| const std::string & | delim | ||
| ) | [protected, virtual] |
| virtual bool DtVpfSpecFactory::initColorMap | ( | ) | [protected, virtual] |
| virtual bool DtVpfSpecFactory::initSpecMap | ( | ) | [protected, virtual] |
| virtual void DtVpfSpecFactory::insert | ( | DtSpecification & | spec, |
| DtVpfEnumeration & | e | ||
| ) | [protected, virtual] |
| virtual DtSpecification* DtVpfSpecFactory::findSpec | ( | const DtVpfEnumeration & | e | ) | [protected, virtual] |
| virtual DtVpfEnumeration DtVpfSpecFactory::buildEnum | ( | const DtVpfRow & | row | ) | [protected, virtual] |
DtColorMap DtVpfSpecFactory::myColorMap [protected] |
DtVpfDatabase* DtVpfSpecFactory::myDatabase [protected] |
DtVpfSpecNode* DtVpfSpecFactory::myRootSpecNode [protected] |