Base class for render objects that require a collection of Fields a given on a Grid.
More...
#include <VertexFieldCollection.hpp>
List of all members.
Classes
Public Types
Public Member Functions
-
VertexFieldCollection (VObject *that)
- Construct a collection of fields on the vertices of a Grid.
-
~VertexFieldCollection ()
- Destructor.
-
void insertVertexField (const string &s, const RefPtr< VertexField > &)
- Add a vertex field under the given name.
-
RefPtr< VertexField > & operator[] (const string &s)
- Retrieve a VertexField for the given name, create one, if required.
-
RefPtr< VertexField > operator() (const string &s) const
- Search for a VertexField under the given name.
-
override Fiber::Info
< Fiber::Skeleton > getRefinementLevel (int Level, const RefPtr< ValuePool > &VP, int IndexDepth=0, const Fiber::BundlePtr &SpaceTime=Fiber::BundlePtr(NullPtr()))
- Implementation of the virtual callback function that will load data sets from a grid into a collection of VertexFields, as specified earlier.
-
Fiber::Bundle::GridInfo_t findMostRecentGrid (const RefPtr< ValuePool > &VP, const Fiber::BundlePtr &SpaceTime=Fiber::BundlePtr(NullPtr()))
-
Fiber::Bundle::GridInfo_t findMostRecentGrid (const string &collection_name, const RefPtr< ValuePool > &VP, const Fiber::BundlePtr &SpaceTime=Fiber::BundlePtr(NullPtr()))
- void retrieveFields (Fiber::FieldCollection &FieldMap, const RefPtr< Fiber::Representation > &MyRepresentation, const RefPtr< ValuePool > &Context)
- From the given Representation, retrieve all fields as required here into the given Fieldmap.
- int append (const RefPtr< VBO > &myVBO, const VertexFragment &VertexFragments, const RefPtr< GLProgram > &Shader) const
- Append all the fields stored in these vertex fragments to the given vertex buffer object.
-
bool isOlderThan (const Ageable &A, const RefPtr< ValuePool > &Context) const
- Check if all parameters in this collection of fields is older than the given age.
-
void updateAge (Ageable &A, const RefPtr< ValuePool > &Context) const
-
RefPtr< StringList > getCurrentFieldnames (const RefPtr< ValuePool > &Context) const
- Get a list of all currently selected fields.
-
int iterate (Iterator &It) const
- Iterate through all available vertex fields.
Public Attributes
Detailed Description
Base class for render objects that require a collection of Fields a given on a Grid.
This base class supports loading the respective fields into the arrays of Vertex Buffer Object and calls an use-defined rendering methods.
Member Enumeration Documentation
- Enumerator:
NumberOfInputFields |
By default a collection of vertex fields requires input objects that provided at least one field.
This setting can be changed in a child class by defining another enum. It will only affect the associated FieldInputCreator<>, specifying for what kind of objects the derived class may be used as output.
|
Member Function Documentation
int Wizt::VertexFieldCollection::append |
( |
const RefPtr< VBO > & |
myVBO, |
|
|
const VertexFragment & |
VertexFragments, |
|
|
const RefPtr< GLProgram > & |
Shader | |
|
) |
| | const |
Append all the fields stored in these vertex fragments to the given vertex buffer object.
The VertexFragments may actually contain more fields, but only those required by this VBO are actually requested.
void Wizt::VertexFieldCollection::retrieveFields |
( |
Fiber::FieldCollection & |
FieldMap, |
|
|
const RefPtr< Fiber::Representation > & |
MyRepresentation, |
|
|
const RefPtr< ValuePool > & |
Context | |
|
) |
| | |
From the given Representation, retrieve all fields as required here into the given Fieldmap.
- Parameters:
-
| FieldMap | A map from strings to RefPtr<Fields>. |