59 #include <OpenFlipper/common/UpdateType.hh> 61 #include <ACG/Math/Matrix4x4T.hh> 62 #include <ACG/Math/VectorT.hh> 88 bool operator!=(
const unsigned int& _i )
const;
89 bool operator!=(
const DataType& _i )
const;
91 bool operator==(
const unsigned int& _i )
const;
92 bool operator==(
const DataType& _i )
const;
94 DataType& operator=(
const unsigned int& _i );
97 bool operator<(
const unsigned int& _i )
const;
98 bool operator<(
const DataType& _i )
const;
100 DataType& operator|=(
const unsigned int& _i );
103 bool operator&(
const unsigned int& _i )
const;
104 bool operator&(
const DataType& _i )
const;
108 bool contains(
const DataType& _i )
const;
120 unsigned int value()
const;
123 QString name()
const;
133 TypeInfo(
DataType _type, QString _name, QString _iconName, QString _readableName ) :
137 readableName(_readableName)
140 if ( _readableName ==
"" )
141 readableName = _name;
168 std::ostream &operator<<(std::ostream &stream,
DataType type);
183 Q_DECLARE_METATYPE(
IdList)
185 Q_DECLARE_METATYPE(QVector< int >)
186 Q_DECLARE_METATYPE(
Vector)
247 std::vector< TypeInfo >::const_iterator
typesBegin();
251 std::vector< TypeInfo >::const_iterator
typesEnd();
DLLEXPORT std::vector< TypeInfo >::const_iterator typesEnd()
Get iterator pointing to the last element in the types list.
ACG::Matrix4x4d Matrix4x4
Standard Type for a 4x4 Matrix used for scripting.
DLLEXPORT QString typeName(DataType _id)
Get the name of a type with given id.
DLLEXPORT std::vector< TypeInfo >::const_iterator typesBegin()
Get iterator pointing to the first element in the types list.
DLLEXPORT size_t typeCount()
Get the number of registered types.
DataType type
The id of the datatype.
DLLEXPORT void setDataTypeName(DataType _id, QString _name)
Set DataType Human readable name.
const DataType DATA_UNKNOWN(0)
None of the other Objects.
DLLEXPORT void setTypeIcon(DataType _id, QString _icon)
Set an Icon for a given DataType.
DLLEXPORT QIcon & typeIcon(DataType _id)
Get an QIcon associated with the given DataType.
std::vector< int > IdList
Standard Type for id Lists used for scripting.
QString name
The name of the datatype.
DLLEXPORT void registerTypes()
ACG::Vec4d Vector4
Standard Type for 4d Vector used for scripting.
DLLEXPORT DataType addDataType(QString _name, QString _readableName)
Adds a datatype and returns the id for the new type.
const DataType DATA_GROUP(1)
Items used for Grouping.
QString iconName
The icon of the datatype.
DLLEXPORT QString typeIconName(QString _name)
Get a string with the filename of the icon for the DataType name.
DLLEXPORT bool typeExists(QString _name)
Check if a type with the given name exists.
ACG::Vec3d Vector
Standard Type for 3d Vector used for scripting.
QString readableName
Human readable name.
const DataType DATA_ALL(UINT_MAX)
Identifier for all available objects.
DLLEXPORT DataType typeId(QString _name)
Given a dataType Identifier string this function will return the id of the datatype.
DLLEXPORT QString dataTypeName(DataType _id)
Get DataType Human readable name ( this name might change. Use the typeName instead! ) ...