27 #include "../common/WAssert.h"
28 #include "../common/WCondition.h"
29 #include "../common/WTransferable.h"
30 #include "exceptions/WDHException.h"
32 #include "WDataSetVector.h"
33 #include "WDataTexture3D.h"
40 m_properties( boost::shared_ptr<
WProperties >( new
WProperties(
"Data-Set Properties",
"Properties of a data-set" ) ) ),
41 m_infoProperties( boost::shared_ptr<
WProperties >( new
WProperties(
"Data-Set Info Properties",
"Data-set's information properties" ) ) ),
59 WAssert( filename !=
"",
"No filename set for data set." );
75 throw WDHException( std::string(
"This dataset does not provide a texture." ) );
85 return "Encapsulates the whole common feature set of all datasets.";
100 return boost::shared_ptr< WDataSetVector >();
General purpose exception and therefore base class for all DataHandler related exceptions.
static boost::shared_ptr< WPrototyped > getPrototype()
Returns a prototype instantiated with the true type of the deriving class.
OW_API_DEPRECATED void setFileName(const std::string filename)
Set the name of the file that this data set stems from.
virtual const std::string getDescription() const
Gets the description for this prototype.
std::string getFilename() const
Get the name of the file that this data set stems from.
boost::shared_ptr< WProperties > getInformationProperties() const
Return a pointer to the information properties object of the dataset.
virtual const std::string getName() const
Gets the name of this prototype.
void setFilename(const std::string filename)
Set the name of the file that this data set stems from.
boost::shared_ptr< WProperties > m_properties
The property object for the dataset.
Class building the interface for classes that might be transferred using WModuleConnector.
OW_API_DEPRECATED std::string getFileName() const
Get the name of the file that this data set stems from.
boost::shared_ptr< WProperties > getProperties() const
Return a pointer to the properties object of the dataset.
boost::shared_ptr< WProperties > m_infoProperties
The property object for the dataset containing only props whose purpose is "PV_PURPOSE_INFORMNATION"...
Class to manage properties of an object and to provide convenience methods for easy access and manipu...
virtual boost::shared_ptr< WDataSetVector > isVectorDataSet()
Checks if this dataset is a vector dataset.
std::string m_filename
Name of the file this data set was loaded from.
static boost::shared_ptr< WPrototyped > m_prototype
The prototype as singleton.
virtual osg::ref_ptr< WDataTexture3D > getTexture() const
Returns the texture- representation of the dataset.
WDataSet()
This constructor should be used if a dataSet does not stem from a file.
virtual bool isTexture() const
Determines whether this dataset can be used as a texture.