Katana Plug-in APIs 0.1
Public Types | Public Member Functions

Foundry::Katana::ViewerUtils::Drawable Class Reference

An object that can be drawn on the Viewport. More...

#include <FnDrawable.h>

List of all members.

Public Types

enum  BUFFER
 

Buffer types.


Public Member Functions

 Drawable ()
 Constructor.
 ~Drawable ()
 Destructor.
bool isReady ()
 Tells if the Drawable is ready to be drawn (if setup has been called).
void setup (const std::vector< Vec3f > &vertices, const std::vector< Vec3f > &normals, const std::vector< unsigned int > &indices, const std::vector< Vec2f > &uvs=std::vector< Vec2f >())
 Sets up the vertex buffers.
void updateVertices (const std::vector< Vec3f > &vertices)
 Update mesh vertices positions.
void updateVertices (const Vec3f *const vertices, const std::size_t numberOfVertices)
 Update mesh vertices positions.
void setLineWidth (unsigned int width)
 Sets the width of the lines to be drawn.
void setPointWidth (unsigned int size)
 Sets the width of the points to be drawn.
void draw (bool withTransparency=true, bool cull=true)
 Draws as a mesh.
void drawLines (bool withTransparency=true)
 Draws as lines.
void drawPoints (bool withTransparency=true)
 Draws as a points.

Detailed Description

An object that can be drawn on the Viewport.

This can be used to draw Manipulator handle elements, such as lines, points or meshes. It maintains a VAO and VBOs internally.


The documentation for this class was generated from the following file:
 All Classes Functions Variables Typedefs Enumerations Enumerator