FemViewer::TriangleShader Class Reference

#include <Shader.h>

Inheritance diagram for FemViewer::TriangleShader:
Inheritance graph
[legend]
Collaboration diagram for FemViewer::TriangleShader:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 TriangleShader (eRenderType type=SH_TRIANGLE)
virtual ~TriangleShader ()
virtual bool Init ()
void SetMatrixNM (const float martix[])
void SetNumOfTriangles (int nTraingles)
void SetLight (const Light &light)
void EdgesOn (bool flag=true)
void IsoLinesOn (bool flag=false)
void ColoredIsoLines (bool flag=false)

Protected Types

enum  {
  NUM_OF_TRIFACES = 0, LIGHT_POSITION, LIGHT_INTENISTY, AMBIENT_INTENSITY,
  DRAW_EDGES, DRAW_ISOLINES, ISOLINES_COLORED, ALL_PARAMS
}

Protected Attributes

GLuint _shParams [ALL_PARAMS]

Member Enumeration Documentation

anonymous enum [protected]
Enumerator:
NUM_OF_TRIFACES 
LIGHT_POSITION 
LIGHT_INTENISTY 
AMBIENT_INTENSITY 
DRAW_EDGES 
DRAW_ISOLINES 
ISOLINES_COLORED 
ALL_PARAMS 

Constructor & Destructor Documentation

FemViewer::TriangleShader::TriangleShader ( eRenderType  type = SH_TRIANGLE  ) 
virtual FemViewer::TriangleShader::~TriangleShader (  )  [inline, virtual]

Member Function Documentation

void FemViewer::TriangleShader::ColoredIsoLines ( bool  flag = false  ) 
void FemViewer::TriangleShader::EdgesOn ( bool  flag = true  ) 
bool FemViewer::TriangleShader::Init (  )  [virtual]

Reimplemented from FemViewer::Shader.

Here is the call graph for this function:

void FemViewer::TriangleShader::IsoLinesOn ( bool  flag = false  ) 
void FemViewer::TriangleShader::SetLight ( const Light light  ) 

Here is the call graph for this function:

void FemViewer::TriangleShader::SetMatrixNM ( const float  martix[]  ) 
void FemViewer::TriangleShader::SetNumOfTriangles ( int  nTraingles  ) 

Member Data Documentation

GLuint FemViewer::TriangleShader::_shParams[ALL_PARAMS] [protected]

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 3 Jun 2020 for ModFEM by  doxygen 1.6.1