|
OpenWalnut 1.3.1
|
Base class to all grid types, e.g. More...
#include <WGrid.h>
Inheritance diagram for WGrid:Public Member Functions | |
| WGrid (size_t size) | |
| Constructs a new WGrid instance. | |
| virtual | ~WGrid () |
| Since WGrid is a base class and thus should be polymorphic we add virtual destructor. | |
| size_t | size () const |
| The number of positions in this grid. | |
| virtual WBoundingBox | getBoundingBox () const =0 |
| Axis aligned Bounding Box that encloses this grid. | |
| boost::shared_ptr< WPropertyGroup > | getInformationProperties () const |
| Returns a pointer to the information properties object of the grid. | |
Protected Attributes | |
| boost::shared_ptr< WPropertyGroup > | m_infoProperties |
| The property object for the grid containing only props whose purpose is "PV_PURPOSE_INFORMNATION". | |
Private Attributes | |
| size_t | m_size |
| Stores the number of positions. | |
| WGrid::WGrid | ( | size_t | size | ) | [explicit] |
Constructs a new WGrid instance.
| size | number of positions in grid |
Definition at line 30 of file WGrid.cpp.
References m_infoProperties, and m_size.
| WGrid::~WGrid | ( | ) | [virtual] |
| virtual WBoundingBox WGrid::getBoundingBox | ( | ) | const [pure virtual] |
Axis aligned Bounding Box that encloses this grid.
Axis aligned Bounding Box that encloses this grid.
Implemented in Dummy, and WGridRegular3DTemplate< T >.
| boost::shared_ptr< WProperties > WGrid::getInformationProperties | ( | ) | const |
Returns a pointer to the information properties object of the grid.
The grid intends these properties to not be modified.
Definition at line 47 of file WGrid.cpp.
References m_infoProperties.
| size_t WGrid::size | ( | ) | const |
The number of positions in this grid.
The number of positions in this grid.
Reimplemented in Dummy.
Definition at line 42 of file WGrid.cpp.
References m_size.
Referenced by WGridRegular3DTest::testOrientation(), and WGridRegular3DTest::testSize().
boost::shared_ptr< WPropertyGroup > WGrid::m_infoProperties [protected] |
The property object for the grid containing only props whose purpose is "PV_PURPOSE_INFORMNATION".
It is useful to define some property to only be of informational nature. The GUI does not modify them.
Definition at line 81 of file WGrid.h.
Referenced by getInformationProperties(), and WGrid().
size_t WGrid::m_size [private] |
1.7.4