PanoramaViewer
 All Classes Namespaces Files Functions Variables Macros Pages
LayerSceneGraph::Layer Class Reference

#include <Layer.h>

Inheritance diagram for LayerSceneGraph::Layer:
LayerSceneGraph::SceneNode

Public Member Functions

 Layer (GLfloat r, GLubyte m, GLubyte p)
 
 Layer (GLfloat r, GLubyte m, GLubyte p, Texture *texture)
 
virtual ~Layer ()
 
void draw ()
 
GLfloat getRadius ()
 
TexturegetTexture ()
 
void setTexture (Texture *texture)
 
void setTexture (string filename)
 
int operator<= (Layer l)
 
- Public Member Functions inherited from LayerSceneGraph::SceneNode
 SceneNode ()
 
virtual ~SceneNode ()
 
virtual void onTouch ()
 
void addChild (SceneNode *s)
 
SceneNoderemoveChild ()
 
Matrix4 getTransform ()
 
void setTransform (Matrix4 m)
 
Matrix4 getWorldTransform ()
 
void setWorldTransform (Matrix4 m)
 
SceneNodegetParent ()
 
Vector3 getPosition ()
 
vector< SceneNode * >
::const_iterator 
getChildteratorStart ()
 
vector< SceneNode * >
::const_iterator 
getChildteratorEnd ()
 

Private Attributes

GLfloat radius
 
GLubyte meridianos
 
GLubyte paralelos
 
Meshmesh
 

Additional Inherited Members

- Protected Attributes inherited from LayerSceneGraph::SceneNode
Matrix4transform
 
Matrix4worldTransform
 
SceneNodeparent
 
vector< SceneNode * > children
 
Vector3 position
 

Constructor & Destructor Documentation

LayerSceneGraph::Layer::Layer ( GLfloat  r,
GLubyte  m,
GLubyte  p 
)

Constructor. Computes vertices position coordinates, texture coordinates and indices for drawing this layer.

Modificar isso, ter maior controle sobre ponto inicial e final dos polos

LayerSceneGraph::Layer::Layer ( GLfloat  r,
GLubyte  m,
GLubyte  p,
Texture texture 
)
LayerSceneGraph::Layer::~Layer ( )
virtual

Destructor. Deletes it's mesh.

Member Function Documentation

void LayerSceneGraph::Layer::draw ( )
virtual

Updates transformation matrix and draws mesh

Reimplemented from LayerSceneGraph::SceneNode.

GLfloat LayerSceneGraph::Layer::getRadius ( )

Returns layer radius value

Texture * LayerSceneGraph::Layer::getTexture ( )

Returns layer texture

int LayerSceneGraph::Layer::operator<= ( Layer  l)

Defines a order relation on the layer's set. Compares this layer with a given layer and returns which one is lesser

void LayerSceneGraph::Layer::setTexture ( Texture texture)

Sets a new texture for this layer

void LayerSceneGraph::Layer::setTexture ( string  filename)

Loads a image file and sets a new texture for this layer based on this file.

Member Data Documentation

GLubyte LayerSceneGraph::Layer::meridianos
private
Mesh* LayerSceneGraph::Layer::mesh
private
GLubyte LayerSceneGraph::Layer::paralelos
private
GLfloat LayerSceneGraph::Layer::radius
private

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