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