38 #ifndef H_OGF_SCENE_GRAPH_TYPES_SHADER_PROPERTIES_H
39 #define H_OGF_SCENE_GRAPH_TYPES_SHADER_PROPERTIES_H
71 color(0.0,0.0,0.0,1.0),
122 color(0.0,0.0,0.0,1.0),
175 color(0.0,0.0,0.0,1.0) {
244 Name(
const std::string& rhs) : val_(rhs) {
251 Name(
const char* rhs) : val_(rhs) {
280 val_ = std::string(rhs);
288 operator const std::string&()
const {
296 operator std::string&() {
337 return (out << (
const std::string&)(name)) ;
354 std::getline(in, (std::string&)name) ;
364 template <
class T>
class File {
Generic arguments and argument lists.
Just a placeholder template to create new Name<> types for file names.
Base class for all 3D Graphite objects.
Base class for all Names in Graphite (GrobName ...).
A template class for strings that need to have a specific type in the GOM system.
bool operator!=(const std::string &rhs) const
Tests whether this Name differs from a given string.
thisclass & operator=(const std::string &rhs)
Assignment operator from std::string.
thisclass & operator=(const char *rhs)
Assignment operator from a C string.
Name< T > thisclass
This class type.
Name(const std::string &rhs)
Name copy constructor from std::string.
bool operator==(const std::string &rhs) const
Tests whether this Name corresponds to a given string.
Name(const thisclass &rhs)
Name copy constructor.
Name(const char *rhs)
Name copy constructor from const char*.
thisclass & operator=(const thisclass &rhs)
Assignment operator.
Global Vorpaline namespace.
geo_index_t index_t
The type for storing and manipulating indices.
Global Graphite namespace.
Name< Colormap * > ColormapName
The name of a colormap.
std::ostream & operator<<(std::ostream &out, const ArgList &args)
Prints an ArgList into a stream.
Name< File< Image * >, true > NewImageFileName
The name of an (existing or not) file that contains an Image.
Name< Grob *, true > NewGrobName
The name of an (existing or not) Grob in the SceneGraph.
Name< File< Memory::byte >, true > NewFileName
The name of a new file.
Name< File< Grob * >, true > NewGrobFileName
The name of an (existing or not) file that contains an object.
Name< Grob * > GrobName
The name of an existing Grob in the SceneGraph.
Name< File< Grob * > > GrobFileName
The name of an existing file that contains an object.
Name< GrobClass * > GrobClassName
The name of a Grob class.
Name< File< Memory::byte > > FileName
The name of an existing file.
Name< FullScreenEffect * > FullScreenEffectName
The name of a full screen effect.
Name< File< Image * > > ImageFileName
The name of an existing file that contains an Image.
std::istream & operator>>(std::istream &in, PointStyle &ps)
Reads a PointStyle from a stream.
Definitions common to all include files in the scene_graph library.
The style used to display colormapped colors.
ColormapName colormap_name
Name of the colormap file, in "lib/colormaps".
bool show
If true, show the colormap and mapped minimum and maximum value on the top left corner of the renderi...
bool flip
If true, flip the colormap.
bool smooth
If true, then colormap is smoothed (using linear interpolation and mipmaps, else GL_NEAREST is used.
ColormapStyle()
ColormapStyle constructor.
index_t repeat
Number of times the colormap should be repeated within the [0,1] range of color indices....
Drawing style for mesh edges.
Color color
Color of the edges.
EdgeStyle()
EdgeStyle constructor.
index_t width
width of the edges.
bool visible
true if edges are visible, false otherwise.
Drawing style for points.
index_t size
Size of the points.
bool visible
true if points are visible, false otherwise.
Color color
Color of the points.
PointStyle()
PointStyle constructor.
Drawing style for polygons.
Color color
The Color used to draw the polygons.
bool visible
true if polygons are visible, false otherwise.
SurfaceStyle()
SurfaceStyle constructor.