29 #include <boost/shared_ptr.hpp>
44 typedef boost::shared_ptr< WDataModule >
SPtr;
49 typedef boost::shared_ptr< const WDataModule >
ConstSPtr;
67 virtual MODULE_TYPE
getType()
const;
74 virtual boost::shared_ptr< WDataSet >
getDataSet() = 0;
85 virtual void setFilename( boost::filesystem::path fname ) = 0;
92 virtual boost::filesystem::path
getFilename()
const = 0;
119 #endif // WDATAMODULE_H
Base for all data loader modules.
boost::shared_ptr< const WDataModule > ConstSPtr
Convenience typedef for a boost::shared_ptr< const WDataModule >.
Class representing a single module of OpenWalnut.
virtual MODULE_TYPE getType() const
Gets the type of the module.
virtual void setFilename(boost::filesystem::path fname)=0
Sets the filename of the file to load.
virtual boost::shared_ptr< WDataSet > getDataSet()=0
Getter for the dataset.
virtual ~WDataModule()
Destructor.
virtual void setSuppressColormaps(bool suppress=true)
Allows suppression of colormap registration in data modules.
boost::shared_ptr< WDataModule > SPtr
Convenience typedef for a boost::shared_ptr< WDataModule >.
bool m_suppressColormaps
If true, data modules are instructed to suppress colormap registration.
WDataModule()
Default constructor.
bool getSuppressColormaps() const
Checks whether suppression of colormaps is active.
virtual boost::filesystem::path getFilename() const =0
Gets the path of the file that has been loaded.