GCOP  1.0
Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes
gcop::DemView Class Reference

#include <demview.h>

Inheritance diagram for gcop::DemView:
Inheritance graph
[legend]
Collaboration diagram for gcop::DemView:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 DemView (const Dem &dem)
virtual ~DemView ()
void Reset ()
void Render ()
bool RenderFrame (int i)
void SetTexture (const char *fname)

Public Attributes

float color [3]
bool wire
 draw as wire mesh (false by default)

Protected Member Functions

void Init ()

Protected Attributes

const Demdem
float * vertices
int mesh_ind_count
GLuint * mesh_inds
float * normals
GLuint texture
 texture

Constructor & Destructor Documentation

DemView::DemView ( const Dem dem)
DemView::~DemView ( ) [virtual]

References mesh_inds, normals, texture, and vertices.


Member Function Documentation

void DemView::Init ( ) [protected]
void DemView::Render ( ) [virtual]

Render a view: all subclasses should provide this method

Reimplemented from gcop::View.

References RenderFrame().

bool DemView::RenderFrame ( int  i) [virtual]

Render a view: all subclasses should provide this method

Parameters:
iframe #
Returns:
return true if more frames should be rendered

Reimplemented from gcop::View.

References color, dem, gcop::Dem::Get(), gcop::Dem::h, gcop::Dem::ni, gcop::Dem::nj, gcop::Dem::normals, gcop::Dem::o, texture, gcop::Dem::w, and wire.

Referenced by Render().

void DemView::Reset ( )

References Init().

void DemView::SetTexture ( const char *  fname)

Member Data Documentation

Referenced by DemView(), Init(), and RenderFrame().

const Dem& gcop::DemView::dem [protected]

Referenced by Init(), and RenderFrame().

Referenced by Init().

GLuint* gcop::DemView::mesh_inds [protected]

Referenced by DemView(), Init(), and ~DemView().

float* gcop::DemView::normals [protected]

Referenced by DemView(), Init(), and ~DemView().

GLuint gcop::DemView::texture [protected]

texture

Referenced by DemView(), RenderFrame(), SetTexture(), and ~DemView().

float* gcop::DemView::vertices [protected]

Referenced by DemView(), Init(), and ~DemView().

draw as wire mesh (false by default)

Referenced by DemView(), and RenderFrame().


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