Role:
The assignment of one or more of these modes can then be retrieved from the
render when drawing a representation.
Some modes are exclusive, and conflicts are automatically solved using the
order of definition of the modes.
example: SetViewMode(VIEW_MATERIAL | VIEW_HLR), which is a nonsense anyway,
will take in account VIEW_MATERIAL first to solve conflicts, then VIEW_HLR.
SetViewMode(VIEW_HRD | VIEW_MATERIAL) will result by first activate MESH,
EDGE and OUTLINE, then MATERIAL will be ignored as having a lower priority
than HRD, and being exclusive to it.
Some modes are requiring other modes to be automatically activated:
VIEW_MATERIAL => VIEW_MESH
VIEW_HRD => VIEW_MESH, VIEW_EDGE, VIEW_OUTLINE
VIEW_HIDDEN_EDGE => VIEW_MESH, VIEW_EDGE
VIEW_POLYGON => VIEW_MESH
VIEW_COLORED_EDGES_FROM_FACES => VIEW_EDGE
Values:
VIEW_MESH
Face of 3D objects are seen in shading
VIEW_EDGE
Edge of 3D objects are seen.
VIEW_COLORED_EDGES_FROM_FACES
The Edges are colored according to the shading faces color.
Each edge has the same color as its adjacent faces. For internal edges, if the two adjacent faces
have two different colors, the edge is painted with the color of the face whose bounding sphere radius is the smallest.
VIEW_OUTLINE
Lines wich form the shadow of 3D objects are seen.