Visualization Library v1.0.3

A lightweight C++ OpenGL middleware for 2D/3D graphics

VL     Star     Watch     Fork     Issue

[Download] [Tutorials] [All Classes] [Grouped Classes]
Public Member Functions | Protected Attributes

vl::SceneManagerVectorGraphics Class Reference

The SceneManagerVectorGraphics class is a SceneManager that contains VectorGraphics objects. More...

#include <SceneManagerVectorGraphics.hpp>

Inheritance diagram for vl::SceneManagerVectorGraphics:
vl::SceneManager vl::Object

List of all members.

Public Member Functions

 SceneManagerVectorGraphics ()
void setActorRenderRankStart (int rank_start)
 Defines the Actor's render rank to be used when extracting them from the scene manager during the rendering.
int actorRenderRankStart () const
 Returns the rendering rank start value used during the rendering of the VectorGraphics objects. See setActorRenderRankStart() for more information.
virtual void extractVisibleActors (ActorCollection &queue, const Camera *)
 Performs frustum culling and appends the enabled and visible Actor[s] to the given ActorCollection.
virtual void extractActors (ActorCollection &queue)
 Appends all the Actor[s] contained in the scene manager without performing frustum culling or checking enable masks.
Collection< VectorGraphics > * vectorGraphicObjects ()
 Returns the list of VectorGraphics objects bound to a SceneManagerVectorGraphics.
const Collection
< VectorGraphics > * 
vectorGraphicObjects () const
 Returns the list of VectorGraphics objects bound to a SceneManagerVectorGraphics.

Protected Attributes

Collection< VectorGraphicsmVectorGraphicObjects
int mActorRenderRankStart

Detailed Description

The SceneManagerVectorGraphics class is a SceneManager that contains VectorGraphics objects.

The VectorGraphics objects are rendered in the order in which they are added to the SceneManagerVectorGraphics.

See also:

Definition at line 56 of file SceneManagerVectorGraphics.hpp.


Constructor & Destructor Documentation

vl::SceneManagerVectorGraphics::SceneManagerVectorGraphics (  ) [inline]

Member Function Documentation

void vl::SceneManagerVectorGraphics::setActorRenderRankStart ( int  rank_start ) [inline]

Defines the Actor's render rank to be used when extracting them from the scene manager during the rendering.

During the rendering when the Actor[s] are extracted they are assigned a progressive render rank starting from rank_start so that they are rendered in the same order in which they were created by their VectorGraphics. Also the order in which a VectorGraphics is inserted in the SceneManagerVectorGraphics determines the rendering order.

Definition at line 67 of file SceneManagerVectorGraphics.hpp.

References mActorRenderRankStart.

int vl::SceneManagerVectorGraphics::actorRenderRankStart (  ) const [inline]

Returns the rendering rank start value used during the rendering of the VectorGraphics objects. See setActorRenderRankStart() for more information.

Definition at line 70 of file SceneManagerVectorGraphics.hpp.

References mActorRenderRankStart.

virtual void vl::SceneManagerVectorGraphics::extractVisibleActors ( ActorCollection list,
const Camera camera 
) [inline, virtual]

Performs frustum culling and appends the enabled and visible Actor[s] to the given ActorCollection.

See also enableMask(), Actor::enableMask()

Implements vl::SceneManager.

Definition at line 72 of file SceneManagerVectorGraphics.hpp.

References vl::SceneManager::cullingEnabled(), and extractActors().

virtual void vl::SceneManagerVectorGraphics::extractActors ( ActorCollection list ) [inline, virtual]

Appends all the Actor[s] contained in the scene manager without performing frustum culling or checking enable masks.

Implements vl::SceneManager.

Definition at line 81 of file SceneManagerVectorGraphics.hpp.

References vl::VectorGraphics::actors(), vl::Collection< T >::at(), mActorRenderRankStart, vl::Collection< T >::push_back(), vl::Actor::setRenderRank(), vl::Collection< T >::size(), and vectorGraphicObjects().

Referenced by extractVisibleActors().

Collection<VectorGraphics>* vl::SceneManagerVectorGraphics::vectorGraphicObjects (  ) [inline]

Returns the list of VectorGraphics objects bound to a SceneManagerVectorGraphics.

Definition at line 95 of file SceneManagerVectorGraphics.hpp.

References mVectorGraphicObjects.

Referenced by extractActors().

const Collection<VectorGraphics>* vl::SceneManagerVectorGraphics::vectorGraphicObjects (  ) const [inline]

Returns the list of VectorGraphics objects bound to a SceneManagerVectorGraphics.

Definition at line 98 of file SceneManagerVectorGraphics.hpp.

References mVectorGraphicObjects.


Member Data Documentation


The documentation for this class was generated from the following file:

Visualization Library v1.0.3 Reference Documentation
Copyright Michele Bosi. All rights reserved.
Updated on Tue Feb 7 2017 00:55:12.
Permission is granted to use this page to write and publish articles regarding Visualization Library.