AddInfo layouts describe a set of attributes that can be attached to geometry objects. More...

#include "IAddInfoLayout.hpp"

+ Inheritance diagram for IAddInfoLayout:

Public Member Functions

virtual unsigned columns () const =0
virtual const char * name (unsigned index) const =0
virtual ColumnType::Type type (unsigned index) const =0
virtual ColumnSemantic::Type semantic (unsigned index) const =0
virtual unsigned size (unsigned index) const =0
 returns array size
virtual int index (const char *) const =0
virtual int index (ColumnSemantic::Type) const =0
- Public Member Functions inherited from ObjectBase
virtual void Delete ()

Static Public Member Functions

static const char * getColumnName (ColumnSemantic::Type semantic)
 returns the predefined column name for a specific semantic.
static ColumnType::Type getColumnType (ColumnSemantic::Type semantic)
 returns the column type of a predefined semantic
static ColumnSemantic::Type getColumnSemantic (const char *name, bool caseSensitive=true)
static ColumnType::Type getColumnType (const char *name, bool caseSensitive=true)

Detailed Description

AddInfo layouts describe a set of attributes that can be attached to geometry objects.

Managing attributes, layout and views is a core feature of the DM library. Please refer to the Managing Attributes section for implementation concepts and to the examples section (attribute handling) for further details.

Member Function Documentation

static ColumnSemantic::Type getColumnSemantic ( const char *  name,
bool  caseSensitive = true 
)
static

find the semantic enumerator based on a given colum name

Returns
corresponding enumerator of ColumnSemantic::null if the given name isn't a predefined colum name
static ColumnType::Type getColumnType ( const char *  name,
bool  caseSensitive = true 
)
static

find the type of a predefined column based on a given colum name

Returns
corresponding enumerator of ColumnType::count if the given name isn't a predefined colum name