Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

Properties Class Reference

Image properties. Usually properties are mapped by name (string). More...

#include <Properties.hpp>

Inheritance diagram for Properties:

Inheritance graph
[legend]
Collaboration diagram for Properties:

Collaboration graph
[legend]
List of all members.

Public Member Functions

void ClearProperties ()
 Erase all properties of this image.
template<class PropClass>
void Parse (const string &name)
 Transforms an xml property to final property.
template<class PType>
void DefaultParse (const string &name)
void Set (const string &name, const ImageProperty *value)
ImagePropertyGet (const string &name)
 Retrieves a property.
const ImagePropertyGet (const string &name) const
 Retrieves a property.
template<class PType>
PType & GetTemplatedProperty (const string &name)
 Retrieves a property that should descend from TemplatedProperty.
template<class PType>
const PType & GetTemplatedProperty (const string &name, PType dud=PType()) const
 Retrieves a property that should descend from TemplatedProperty.
bool Has (const string &propname) const
void Add (const string &name, const char *str)
 Add a string property instead of a char* property.
template<class PType>
void Add (const string &name, PType *ptr)
 Adds a new property using the automatic PropertyWrapPtr property wrapper.
template<class PType>
void Add (const string &name, PType obj)
 Adds a new property using the automatic PropertyWrapPtr property wrapper.
void AddUnparsed (const string &name, const PropertyXML &unparsed)
 Adds a new unparsed property.
void Remove (const string &name)
 remove a property
void operator= (const Properties &other)
bool operator== (const Properties &other) const
void Read (ImLib3DFile *file, xmlpp::Element *parentNode=NULL, xmlpp::Element *node=NULL)
 Read this object, either from a current node, a parent node, or the root node of the file.
void Write (ImLib3DFile *file, xmlpp::Element *parentNode=NULL, xmlpp::Element *node=NULL) const
 Write this object, either to a current node, a parent node, or the root node of the file.
void AddMask (const Size3D &size)
template<class ImageType>
 Properties (ImageType *_image)

Public Attributes

Mask3Dmask
Vect3DiiCenter

Private Types

typedef ImageProperty Prop
typedef PropertyXML PropXML

Private Attributes

map< string, Prop * > properties

Detailed Description

Image properties. Usually properties are mapped by name (string).

Exceptionally important properties like "Mask" are hardcoded

Definition at line 151 of file Properties.hpp.


Member Function Documentation

void Properties::AddUnparsed const string &  name,
const PropertyXML unparsed
[inline]
 

Adds a new unparsed property.

this is usefull when we can't instatiate for a particular template type, like when we want to add a property from the command-line

Definition at line 252 of file Properties.hpp.

References PropertyXML::Duplicate().


The documentation for this class was generated from the following files:
Generated on Fri Jun 17 13:36:19 2005 for ImLib3D by  doxygen 1.4.2