35 #ifndef ANA_SURFACE_SHADER_H 36 #define ANA_SURFACE_SHADER_H 119 inline void setModels(LightingModel lm, InterpolationModel im,
120 ColoringModel cm, MaterialModel mm);
161 {
return( !
operator != ( mat ) ); }
Shader & operator=(const Shader &)
static LightingModel_::EnumType DefaultLightingModel
A Multi-object with OpenGL rendering capabilities.
ViewState holds information about how a view wants to see an object.
static bool getAnatomistDefaultBehaviour(void)
void setMaterialModel(MaterialModel m)
MaterialModel_::EnumType MaterialModel
static ColoringModel_::EnumType DefaultColoringModel
static bool isSupported(void)
static bool isActivated(void)
MaterialModel _material_model
void setColoringModel(ColoringModel m)
Interpolation model flags.
InterpolationModel getInterpolationModel() const
void setInterpolationModel(InterpolationModel m)
void load_if_needed(void)
LightingModel_::EnumType LightingModel
ColoringModel_::EnumType ColoringModel
bool operator!=(const Shader &) const
void setLightingModel(LightingModel m)
Fusion object merging a triangulation and a texture object.
VolumeBase object : use for generic dynamic_cast of all AVolume<T>, thus the visitor design pattern c...
static MaterialModel_::EnumType DefaultMaterialModel
static bool _isSupported(void)
static bool isUsedByDefault(void)
InterpolationModel _interpolation_model
static void enable_all(void)
bool operator==(const Shader &mat) const
LightingModel _lighting_model
static void disable_all(void)
void setModels(LightingModel lm, InterpolationModel im, ColoringModel cm, MaterialModel mm)
InterpolationModel_::EnumType InterpolationModel
ColoringModel _coloring_model
Base class for all OpenGL objects in Anatomist (with OpenGL display lists)
friend std::ostream & operator<<(std::ostream &, const anatomist::Shader &)
void setShaderParameters(const GLComponent &obj, const ViewState &state) const
ColoringModel getColoringModel() const
static InterpolationModel_::EnumType DefaultInterpolationModel
MaterialModel getMaterialModel() const
LightingModel getLightingModel() const
void bind(const GLComponent &glc, const ViewState &state)