anatomist  5.1.2
3D neuroimaging data viewer
anatomist::Shader Class Reference

#include <anatomist/surface/Shader.h>

Classes

struct  ColoringModel_
 Coloring model flags. More...
 
struct  InterpolationModel_
 Interpolation model flags. More...
 
struct  LightingModel_
 Light model flags. More...
 
struct  MaterialModel_
 Material model flags. More...
 

Public Types

typedef LightingModel_::EnumType LightingModel
 
typedef InterpolationModel_::EnumType InterpolationModel
 
typedef ColoringModel_::EnumType ColoringModel
 
typedef MaterialModel_::EnumType MaterialModel
 

Public Member Functions

 Shader ()
 
 Shader (const Shader &)
 
virtual ~Shader ()
 
void setLightingModel (LightingModel m)
 
void setInterpolationModel (InterpolationModel m)
 
void setColoringModel (ColoringModel m)
 
void setMaterialModel (MaterialModel m)
 
void setModels (LightingModel lm, InterpolationModel im, ColoringModel cm, MaterialModel mm)
 
LightingModel getLightingModel () const
 
InterpolationModel getInterpolationModel () const
 
ColoringModel getColoringModel () const
 
MaterialModel getMaterialModel () const
 
void bind (const GLComponent &glc, const ViewState &state)
 
void release (void)
 
void reload (void)
 
void enable (void)
 
void disable (void)
 
void load_if_needed (void)
 
void setShaderParameters (const GLComponent &obj, const ViewState &state) const
 
void setShaderParameters (const GLMObject &obj, const ViewState &state) const
 
void setShaderParameters (const AVolumeBase &obj, const ViewState &state) const
 
void setShaderParameters (const ATexSurface &obj, const ViewState &state) const
 
Shaderoperator= (const Shader &)
 
bool operator!= (const Shader &) const
 
bool operator== (const Shader &mat) const
 

Static Public Member Functions

static bool isSupported (void)
 
static bool getAnatomistDefaultBehaviour (void)
 
static bool isActivated (void)
 
static bool isUsedByDefault (void)
 
static void enable_all (void)
 
static void disable_all (void)
 

Static Public Attributes

static LightingModel_::EnumType DefaultLightingModel
 
static InterpolationModel_::EnumType DefaultInterpolationModel
 
static ColoringModel_::EnumType DefaultColoringModel
 
static MaterialModel_::EnumType DefaultMaterialModel
 

Protected Member Functions

void load (void)
 

Static Protected Member Functions

static bool _isSupported (void)
 

Protected Attributes

LightingModel _lighting_model
 
InterpolationModel _interpolation_model
 
ColoringModel _coloring_model
 
MaterialModel _material_model
 

Friends

std::ostream & operator<< (std::ostream &, const anatomist::Shader &)
 

Detailed Description

Definition at line 49 of file Shader.h.

Member Typedef Documentation

◆ ColoringModel

◆ InterpolationModel

◆ LightingModel

◆ MaterialModel

Constructor & Destructor Documentation

◆ Shader() [1/2]

anatomist::Shader::Shader ( )

◆ Shader() [2/2]

anatomist::Shader::Shader ( const Shader )

◆ ~Shader()

virtual anatomist::Shader::~Shader ( )
virtual

Member Function Documentation

◆ _isSupported()

static bool anatomist::Shader::_isSupported ( void  )
staticprotected

◆ bind()

void anatomist::Shader::bind ( const GLComponent glc,
const ViewState state 
)

◆ disable()

void anatomist::Shader::disable ( void  )

◆ disable_all()

static void anatomist::Shader::disable_all ( void  )
static

◆ enable()

void anatomist::Shader::enable ( void  )

◆ enable_all()

static void anatomist::Shader::enable_all ( void  )
static

◆ getAnatomistDefaultBehaviour()

static bool anatomist::Shader::getAnatomistDefaultBehaviour ( void  )
static

◆ getColoringModel()

Shader::ColoringModel anatomist::Shader::getColoringModel ( ) const
inline

Definition at line 225 of file Shader.h.

References _coloring_model.

◆ getInterpolationModel()

Shader::InterpolationModel anatomist::Shader::getInterpolationModel ( ) const
inline

Definition at line 220 of file Shader.h.

References _interpolation_model.

◆ getLightingModel()

Shader::LightingModel anatomist::Shader::getLightingModel ( ) const
inline

Definition at line 215 of file Shader.h.

References _lighting_model.

◆ getMaterialModel()

Shader::MaterialModel anatomist::Shader::getMaterialModel ( ) const
inline

Definition at line 230 of file Shader.h.

References _material_model.

◆ isActivated()

static bool anatomist::Shader::isActivated ( void  )
static

◆ isSupported()

static bool anatomist::Shader::isSupported ( void  )
static

◆ isUsedByDefault()

static bool anatomist::Shader::isUsedByDefault ( void  )
static

◆ load()

void anatomist::Shader::load ( void  )
protected

◆ load_if_needed()

void anatomist::Shader::load_if_needed ( void  )

◆ operator!=()

bool anatomist::Shader::operator!= ( const Shader ) const

◆ operator=()

Shader& anatomist::Shader::operator= ( const Shader )

◆ operator==()

bool anatomist::Shader::operator== ( const Shader mat) const
inline

Definition at line 160 of file Shader.h.

◆ release()

void anatomist::Shader::release ( void  )

◆ reload()

void anatomist::Shader::reload ( void  )

◆ setColoringModel()

void anatomist::Shader::setColoringModel ( ColoringModel  m)
inline

Definition at line 194 of file Shader.h.

References _coloring_model.

◆ setInterpolationModel()

void anatomist::Shader::setInterpolationModel ( InterpolationModel  m)
inline

Definition at line 189 of file Shader.h.

References _interpolation_model.

◆ setLightingModel()

void anatomist::Shader::setLightingModel ( LightingModel  m)
inline

Definition at line 184 of file Shader.h.

References _lighting_model.

◆ setMaterialModel()

void anatomist::Shader::setMaterialModel ( MaterialModel  m)
inline

Definition at line 199 of file Shader.h.

References _material_model.

◆ setModels()

◆ setShaderParameters() [1/4]

void anatomist::Shader::setShaderParameters ( const ATexSurface obj,
const ViewState state 
) const

◆ setShaderParameters() [2/4]

void anatomist::Shader::setShaderParameters ( const AVolumeBase obj,
const ViewState state 
) const

◆ setShaderParameters() [3/4]

void anatomist::Shader::setShaderParameters ( const GLComponent obj,
const ViewState state 
) const

◆ setShaderParameters() [4/4]

void anatomist::Shader::setShaderParameters ( const GLMObject obj,
const ViewState state 
) const

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream &  ,
const anatomist::Shader  
)
friend

Member Data Documentation

◆ _coloring_model

ColoringModel anatomist::Shader::_coloring_model
protected

Definition at line 174 of file Shader.h.

Referenced by getColoringModel(), setColoringModel(), and setModels().

◆ _interpolation_model

InterpolationModel anatomist::Shader::_interpolation_model
protected

Definition at line 173 of file Shader.h.

Referenced by getInterpolationModel(), setInterpolationModel(), and setModels().

◆ _lighting_model

LightingModel anatomist::Shader::_lighting_model
protected

Definition at line 172 of file Shader.h.

Referenced by getLightingModel(), setLightingModel(), and setModels().

◆ _material_model

MaterialModel anatomist::Shader::_material_model
protected

Definition at line 175 of file Shader.h.

Referenced by getMaterialModel(), setMaterialModel(), and setModels().

◆ DefaultColoringModel

ColoringModel_::EnumType anatomist::Shader::DefaultColoringModel
static

Definition at line 95 of file Shader.h.

◆ DefaultInterpolationModel

InterpolationModel_::EnumType anatomist::Shader::DefaultInterpolationModel
static

Definition at line 80 of file Shader.h.

◆ DefaultLightingModel

LightingModel_::EnumType anatomist::Shader::DefaultLightingModel
static

Definition at line 65 of file Shader.h.

◆ DefaultMaterialModel

MaterialModel_::EnumType anatomist::Shader::DefaultMaterialModel
static

Definition at line 108 of file Shader.h.


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