|
Field3D
|
#include <Field3DFile.h>
Public Types | |
| typedef Partition | class_type |
| typedef boost::intrusive_ptr< const Partition > | CPtr |
| typedef std::vector< Layer > | LayerList |
| typedef boost::intrusive_ptr< Partition > | Ptr |
Public Types inherited from RefBase | |
| typedef boost::intrusive_ptr< RefBase > | Ptr |
| typedef boost::weak_ptr< RefBase > | WeakPtr |
Public Member Functions | |
| void | addLayer (const File::Layer &layer) |
| Adds a layer. More... | |
| void | getLayerNames (std::vector< std::string > &names) const |
| Gets all the layer names. More... | |
| OgOGroup & | group () const |
| Returns a reference to the OgOGroup. More... | |
| const File::Layer * | layer (const std::string &name) const |
| Finds a layer. More... | |
| Partition () | |
| Ctor. More... | |
| void | setGroup (boost::shared_ptr< OgOGroup > ptr) |
| Sets the group pointer. More... | |
From RefBase | |
| virtual std::string | className () const |
Public Member Functions inherited from RefBase | |
| void | ref () const |
| Used by boost::intrusive_pointer. More... | |
| size_t | refcnt () |
| Used by boost::intrusive_pointer. More... | |
| void | unref () const |
| Used by boost::intrusive_pointer. More... | |
| WeakPtr | weakPtr () const |
| RefBase () | |
| RefBase (const RefBase &) | |
| Copy constructor. More... | |
| RefBase & | operator= (const RefBase &) |
| Assignment operator. More... | |
| virtual | ~RefBase () |
| Destructor. More... | |
| virtual bool | checkRTTI (const char *typenameStr)=0 |
| This function is only implemented by concrete classes and triggers the actual RTTI check through matchRTTI();. More... | |
| bool | matchRTTI (const char *typenameStr) |
| Performs a check to see if the given typename string matches this class' This needs to be implemented in -all- subclasses, even abstract ones. More... | |
Static Public Member Functions | |
| static const char * | staticClassType () |
Static Public Member Functions inherited from RefBase | |
| static const char * | staticClassType () |
Public Attributes | |
| DEFINE_FIELD_RTTI_CONCRETE_CLASS | |
| FieldMapping::Ptr | mapping |
| Pointer to the mapping object. More... | |
| std::string | name |
| Name of the partition. More... | |
Private Types | |
| typedef RefBase | base |
| Convenience typedef for referring to base class. More... | |
Private Attributes | |
| boost::shared_ptr< OgOGroup > | m_group |
| Group representing the partition. More... | |
| LayerList | m_layers |
| The layers belonging to this partition. More... | |
This class represents the partition-level node in a f3D file. The partition contains one "Mapping" and N "Fields" that all share that mapping.
Definition at line 121 of file Field3DFile.h.
| typedef std::vector<Layer> File::Partition::LayerList |
Definition at line 125 of file Field3DFile.h.
| typedef boost::intrusive_ptr<Partition> File::Partition::Ptr |
Definition at line 127 of file Field3DFile.h.
| typedef boost::intrusive_ptr<const Partition> File::Partition::CPtr |
Definition at line 128 of file Field3DFile.h.
| typedef Partition File::Partition::class_type |
Definition at line 132 of file Field3DFile.h.
|
private |
Convenience typedef for referring to base class.
Definition at line 191 of file Field3DFile.h.
|
inline |
Ctor.
Definition at line 143 of file Field3DFile.h.
|
inlinestatic |
Definition at line 135 of file Field3DFile.h.
|
virtual |
Definition at line 343 of file Field3DFile.cpp.
| void File::Partition::addLayer | ( | const File::Layer & | layer | ) |
Adds a layer.
Definition at line 351 of file Field3DFile.cpp.
| const Layer * File::Partition::layer | ( | const std::string & | name | ) | const |
Finds a layer.
Definition at line 359 of file Field3DFile.cpp.
References m_layers, and name.
Referenced by addLayer().
| void File::Partition::getLayerNames | ( | std::vector< std::string > & | names | ) | const |
Gets all the layer names.
Definition at line 373 of file Field3DFile.cpp.
References m_layers.
| OgOGroup & File::Partition::group | ( | ) | const |
Returns a reference to the OgOGroup.
Definition at line 385 of file Field3DFile.cpp.
References m_group.
| void File::Partition::setGroup | ( | boost::shared_ptr< OgOGroup > | ptr | ) |
| File::Partition::DEFINE_FIELD_RTTI_CONCRETE_CLASS |
Definition at line 133 of file Field3DFile.h.
| std::string File::Partition::name |
| FieldMapping::Ptr File::Partition::mapping |
Pointer to the mapping object.
Definition at line 177 of file Field3DFile.h.
|
private |
The layers belonging to this partition.
Definition at line 184 of file Field3DFile.h.
Referenced by addLayer(), getLayerNames(), and layer().
|
private |
Group representing the partition.
Definition at line 186 of file Field3DFile.h.
Referenced by group(), and setGroup().