IAddInfoLayout Class Referenceabstract

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 (unsigned index) const =0
 
virtual ColumnSemantic 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) const =0
 
- Public Member Functions inherited from ObjectBase
virtual void Delete ()
 

Static Public Member Functions

static const char * getColumnName (ColumnSemantic semantic)
 returns the predefined column name for a specific semantic.
 
static ColumnType getColumnType (ColumnSemantic semantic)
 returns the column type of a predefined semantic
 
static ColumnSemantic getColumnSemantic (const char *name, bool caseSensitive=true)
 
static ColumnType 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

◆ getColumnSemantic()

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

find the semantic enumerator based on a given column name

Returns
corresponding enumerator of ColumnSemantic::null if the given name isn't a predefined colum name

◆ getColumnType()

static ColumnType getColumnType ( const char *  name,
bool  caseSensitive = true 
)
static

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

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