25 #ifndef WDATASETSINGLE_H
26 #define WDATASETSINGLE_H
30 #include <osg/ref_ptr>
33 #include <boost/shared_ptr.hpp>
38 #include "WGridRegular3D.h"
39 #include "WValueSet.h"
53 typedef boost::shared_ptr< WDataSetSingle >
SPtr;
58 typedef boost::shared_ptr< const WDataSetSingle >
ConstSPtr;
67 boost::shared_ptr< WGrid > newGrid );
110 boost::shared_ptr< WValueSetBase >
getValueSet()
const;
115 boost::shared_ptr< WGrid >
getGrid()
const;
124 template<
typename T > T
getValueAt(
size_t id );
147 virtual osg::ref_ptr< WDataTexture3D >
getTexture()
const;
154 virtual const std::string
getName()
const;
198 #endif // WDATASETSINGLE_H
boost::shared_ptr< WGrid > m_grid
Stores the reference of the WGrid of this DataSetSingle instance.
static boost::shared_ptr< WPrototyped > getPrototype()
Returns a prototype instantiated with the true type of the deriving class.
Base class for all data set types.
boost::shared_ptr< WValueSetBase > getValueSet() const
virtual WDataSetSingle::SPtr clone() const
Creates a copy (clone) of this instance.
osg::ref_ptr< WDataTexture3D > m_texture
The 3D texture representing this dataset.
boost::shared_ptr< WGrid > getGrid() const
virtual const std::string getName() const
Gets the name of this prototype.
virtual T getScalar(size_t i) const
boost::shared_ptr< WValueSetBase > m_valueSet
Stores the reference of the WValueSet of this DataSetSingle instance.
A data set consisting of a set of values based on a grid.
static boost::shared_ptr< WPrototyped > m_prototype
The prototype as singleton.
virtual ~WDataSetSingle()
Destroys this DataSet instance.
boost::shared_ptr< WDataSetSingle > SPtr
Convenience typedef for a boost::shared_ptr.
Base Class for all value set types.
WDataSetSingle()
Construct an empty and unusable instance.
virtual const std::string getDescription() const
Gets the description for this prototype.
virtual osg::ref_ptr< WDataTexture3D > getTexture() const
Returns the texture representation of the dataset.
This class allows simple creation of WGETexture3D by using a specified grid and value-set.
boost::shared_ptr< const WDataSetSingle > ConstSPtr
Convenience typedef for a boost::shared_ptr; const.
virtual bool isTexture() const
Determines whether this dataset can be used as a texture.
T getValueAt(size_t id)
Get the value stored at position of the value set.