public abstract

Inheritance Graph

graph BT
	PositionAttributeAccessor
	PositionAttributeAccessor --> VertexAttributeAccessor
	click PositionAttributeAccessor "classRendering_1_1PositionAttributeAccessor"
	click VertexAttributeAccessor "classRendering_1_1VertexAttributeAccessor"

Description

PositionAttributeAccessor |> VertexAttributeAccessor Accessor for float vertex positions.

Note: If someday something else than vec3 is used for storing positions, this has to be implemented using new subclasses!

Protected Functions

   
   
  PositionAttributeAccessor( MeshVertexData & _vData, const VertexAttribute & _attribute)

Public Static Functions

   
   
Util::Reference < PositionAttributeAccessor > create( MeshVertexData & _vData, Util::StringIdentifier name)

Public Functions

   
   
  ~PositionAttributeAccessor()
   
const Geometry::Vec3 getPosition(uint32_t index) const
   
void setPosition(uint32_t index, const Geometry::Vec3 & p)

Documentation

function
Rendering::PositionAttributeAccessor::PositionAttributeAccessor

protected inline
     
     
PositionAttributeAccessor( MeshVertexData & _vData,
  const VertexAttribute & _attribute
)    

Defined in Rendering/Mesh/VertexAttributeAccessors.h:115


function
Rendering::PositionAttributeAccessor::create

public static
     
     
Util::Reference < PositionAttributeAccessor > create( MeshVertexData & _vData,
  Util::StringIdentifier name
)    

(static factory) Create a PositionAttributeAccessor for the given MeshVertexData ‘s attribute having the given name. If no Accessor can be created, an std::invalid_argument exception is thrown.

Defined in Rendering/Mesh/VertexAttributeAccessors.h:121


function
Rendering::PositionAttributeAccessor::~PositionAttributeAccessor

public inline virtual
   
   
~PositionAttributeAccessor( )

Defined in Rendering/Mesh/VertexAttributeAccessors.h:123


function
Rendering::PositionAttributeAccessor::getPosition

public const virtual
     
     
const Geometry::Vec3 getPosition( uint32_t index ) const

Defined in Rendering/Mesh/VertexAttributeAccessors.h:125


function
Rendering::PositionAttributeAccessor::setPosition

public virtual
     
     
void setPosition( uint32_t index,
  const Geometry::Vec3 & p
)    

Defined in Rendering/Mesh/VertexAttributeAccessors.h:126