17 INLINE RenderModeAttrib::
18 RenderModeAttrib(RenderModeAttrib::Mode mode, PN_stdfloat thickness,
19 bool perspective,
const LColor &wireframe_color) :
21 _thickness(thickness),
22 _perspective(perspective),
23 _wireframe_color(wireframe_color)
30 INLINE RenderModeAttrib::Mode RenderModeAttrib::
40 INLINE PN_stdfloat RenderModeAttrib::
41 get_thickness()
const {
52 INLINE
bool RenderModeAttrib::
53 get_perspective()
const {
61 INLINE
const LColor &RenderModeAttrib::
62 get_wireframe_color()
const {
63 return _wireframe_color;
73 if (_mode == M_point) {
74 geom_rendering |= Geom::GR_point | Geom::GR_render_mode_point;
76 }
else if (_mode == M_wireframe) {
77 geom_rendering |= Geom::GR_render_mode_wireframe;
80 if ((geom_rendering & Geom::GR_point) != 0) {
82 geom_rendering |= (Geom::GR_point_perspective | Geom::GR_point_uniform_size);
83 }
else if (_thickness != 1.0f) {
84 geom_rendering |= Geom::GR_point_uniform_size;
88 return geom_rendering;
int get_geom_rendering(int geom_rendering) const
Returns the union of the Geom::GeomRendering bits that will be required once this RenderModeAttrib is...