7 #ifndef __surface_SurfaceAccessorCatalog_h__ 8 #define __surface_SurfaceAccessorCatalog_h__ 30 using SurfaceAccessorBase::set;
31 using SurfaceAccessorBase::append;
32 using SurfaceAccessorBase::spatialVector;
35 virtual U32 count(
void)
const;
36 virtual U32 subCount(U32 a_index)
const;
38 virtual void set(U32 a_index,U32 subIndex,
String a_string);
39 virtual String string(U32 a_index,U32 a_subIndex=0);
41 virtual void set(U32 a_index,U32 a_subIndex,I32 a_integer);
42 virtual I32 integer(U32 a_index,U32 a_subIndex=0);
44 virtual I32 append(I32 a_integer);
45 virtual I32 append(
void);
46 virtual I32 append(SurfaceAccessibleI::Form a_form);
47 virtual void append(U32 a_index,I32 a_integer);
50 virtual void set(U32 a_index,U32 a_subIndex,Real a_real);
51 virtual Real real(U32 a_index,U32 a_subIndex=0);
53 virtual void set(U32 a_index,U32 a_subIndex,
55 virtual SpatialVector spatialVector(U32 a_index,U32 a_subIndex=0);
57 BWORD bind(SurfaceAccessibleI::Element a_element,
58 SurfaceAccessibleI::Attribute a_attribute)
60 m_attribute=a_attribute;
65 case SurfaceAccessibleI::e_generic:
66 case SurfaceAccessibleI::e_position:
69 case SurfaceAccessibleI::e_normal:
72 case SurfaceAccessibleI::e_uv:
75 case SurfaceAccessibleI::e_color:
78 case SurfaceAccessibleI::e_vertices:
86 case SurfaceAccessibleI::e_properties:
95 return bindInternal(a_element,name);
97 BWORD bind(SurfaceAccessibleI::Element a_element,
101 m_attribute=SurfaceAccessibleI::e_generic;
106 m_attribute=SurfaceAccessibleI::e_position;
111 m_attribute=SurfaceAccessibleI::e_normal;
116 m_attribute=SurfaceAccessibleI::e_uv;
121 m_attribute=SurfaceAccessibleI::e_color;
124 return bindInternal(a_element,name);
129 { m_spCatalog=a_spCatalog; }
135 void bindVector(U32 a_subIndex,BWORD a_create);
137 virtual BWORD bindInternal(SurfaceAccessibleI::Element a_element,
140 void setAttrType(
String a_attrType);
Accessor backed with a Catalog.
Definition: SurfaceAccessorCatalog.h:22
kernel
Definition: namespace.dox:3
Common Functionality for Accessor Surface.
Definition: SurfaceAccessorBase.h:20
Automatically reference-counted string container.
Definition: String.h:128
Wrapper for std::vector.
Definition: Array.h:21
Intrusive Smart Pointer.
Definition: src/core/ptr.h:53
Per-class participation non-RTTI fallback dynamic casting mechanism.
Definition: Castable.h:192