|
| MGRenderAttr (RENDERSIDE rs=FRONT) |
| Defines context solid color MGRenderAttr(that is, no texture mapping). [詳解]
|
|
| MGRenderAttr (const MGColor &solid_color) |
| Defines a solid color MGRenderAttr(that is, no texture mapping) of solid_color. [詳解]
|
|
| MGRenderAttr (const MGRenderAttr &attr) |
| copy constructor. [詳解]
|
|
| ~MGRenderAttr () |
| Destructor. [詳解]
|
|
MGRenderAttr & | operator= (const MGGel &gel2) |
| Assignment. [詳解]
|
|
MGRenderAttr & | operator= (const MGRenderAttr &gel2) |
|
bool | operator< (const MGRenderAttr &gel2) const |
| comparison [詳解]
|
|
bool | operator< (const MGGel &gel2) const |
|
MGRenderAttr * | clone () const |
| Generate a newed clone object. [詳解]
|
|
void | exec (mgVBO &vbo) const |
| Invoke appropriate OpenGL fucntion to this attribute. [詳解]
|
|
bool | is_color_shading () const |
| Test if this defines color shading(returns true) or texture shading(returns false). [詳解]
|
|
bool | is_highlight_attrib () const |
| Test if this is highlight attrib or not. [詳解]
|
|
bool | is_texture_shading () const |
| Test if this defines texture shading(returns true) or color shading(returns false). [詳解]
|
|
bool | material_defined () const |
| Material. [詳解]
|
|
const MGMaterial * | material () const |
|
void | set_material (RENDERSIDE rs, const float ambient[3], const float diffuse[3], const float specular[3], const float emission[3], float shininess=0., float transparency=0.) |
|
void | set_back_material (const float ambient[3], const float diffuse[3], const float specular[3], const float emission[3], float shininess=0., float transparency=0.) |
|
void | set_render_side (RENDERSIDE side=FRONT) |
| Set the render side. [詳解]
|
|
const MGMaterial * | back_material () const |
|
RENDERSIDE | render_side () const |
|
GLenum | GLrender_side () const |
|
void | set_color_shading (const MGColor &colr) |
|
void | drawAttrib (mgVBO &vbo, bool no_color=false) const |
| draw GLAttribute process. [詳解]
|
|
void | render (mgVBO &vbo) const |
| render GLAttribute process. [詳解]
|
|
void | set_draw_attrib_mask (unsigned int &mask) const |
| Turn on the appropriate mask bit for this attribute. See glPushAttrib(). [詳解]
|
|
void | reset_draw_attrib_mask (unsigned int &mask) const |
| Turn off the appropriate mask bit for this attribute. See glPushAttrib(). [詳解]
|
|
void | set_render_attrib_mask (unsigned int &mask) const |
| Turn on the appropriate mask bit for this attribute. See glPushAttrib(). [詳解]
|
|
void | reset_render_attrib_mask (unsigned int &mask) const |
| Turn off the appropriate mask bit for this attribute. See glPushAttrib(). [詳解]
|
|
long | identify_type () const |
| Return This object's typeID. [詳解]
|
|
std::string | whoami () const |
|
void | ReadMembers (MGIfstream &buf) |
| Read all member data. [詳解]
|
|
void | WriteMembers (MGOfstream &buf) const |
| Write all member data. [詳解]
|
|
std::ostream & | out (std::ostream &) const |
| Output function. [詳解]
|
|
| MGGLAttrib (int flag=UNDEFINED) |
|
virtual MGGLAttrib & | operator= (const MGGLAttrib &gel2) |
|
bool | undefined () const |
|
bool | defined () const |
|
bool | disabled () const |
|
bool | enabled () const |
|
void | set_undefined () |
|
void | set_disabled () |
|
int | data () const |
| retrieve the data. [詳解]
|
|
int & | data () |
|
bool | same_type (const MGGLAttrib &at2) const |
| Compare if this and at2 are the same leaf MGGLAttrib class. [詳解]
|
|
virtual | ~MGAttrib () |
| Virtual Destructor. [詳解]
|
|
virtual MGAttrib & | operator= (const MGAttrib &gel2) |
|
MGAttrib * | attrib () |
| Return MGAttrib pointer if this MGGel is an MGAttrib, else return null. [詳解]
|
|
const MGAttrib * | attrib () const |
|
const MGObject * | includes_object () const |
| Test if this gel includes an object. [詳解]
|
|
MGObject * | includes_object () |
| Test if this gel includes an object. [詳解]
|
|
virtual | ~MGGel () |
| Virtual Destructor. [詳解]
|
|
virtual bool | operator== (const MGGel &gel2) const |
| Comparison. [詳解]
|
|
virtual bool | operator!= (const MGGel &gel2) const |
|
virtual bool | operator> (const MGGel &gel2) const |
|
virtual int | out_to_IGES (MGIgesOfstream &igesfile, int SubordinateEntitySwitch=0) const |
|
virtual mgVBO * | dlist_name () const |
| Obtain display list name. 0(null) means this gel need not to be displayed. [詳解]
|
|
virtual void | make_display_list (MGCL::VIEWMODE vmode=MGCL::DONTCARE) const |
| Make a display list of this gel. [詳解]
|
|
virtual int | manifold_dimension () const |
|
virtual MGGroup * | group () |
| Return MGGroup pointer if this MGGel is an MGGroup, else return null. [詳解]
|
|
virtual const MGGroup * | group () const |
|
virtual MGObject * | object () |
| Return MGObject pointer if this MGGel is an MGObject, else return null. [詳解]
|
|
virtual const MGObject * | object () const |
|
virtual MGGeometry * | geometry () |
| Return MGGeometry pointer if this MGGel is an MGGeometry, else return null. [詳解]
|
|
virtual const MGGeometry * | geometry () const |
|
virtual MGPoint * | point () |
| Return point pointer if this MGGel is an MGPoint, else return null. [詳解]
|
|
virtual const MGPoint * | point () const |
|
virtual MGCurve * | curve () |
| Return curve pointer if this MGGel is an MGCurve, else return null. [詳解]
|
|
virtual const MGCurve * | curve () const |
|
virtual MGSurface * | surf () |
| Return MGSurface pointer if this MGGel is an MGSurface, else return null. [詳解]
|
|
virtual const MGSurface * | surf () const |
|
virtual MGTopology * | topology () |
| Return MGTopology pointer if this MGGel is an MGTopology, else return null. [詳解]
|
|
virtual const MGTopology * | topology () const |
|
virtual MGFace * | face () |
| Return MGFace pointer if this MGGel is an MGFace, else return null. [詳解]
|
|
virtual const MGFace * | face () const |
|
virtual MGShell * | shell () |
| Return MGShell pointer if this MGGel is an MGShell, else return null. [詳解]
|
|
virtual const MGShell * | shell () const |
|
virtual bool | no_display () const |
|
std::string | string_content () const |
|
virtual void | transform (const MGVector &v) |
| Transform the gel by the argument. [詳解]
|
|
virtual void | transform (double scale) |
| scaling. [詳解]
|
|
virtual void | transform (const MGMatrix &mat) |
| matrix transformation. [詳解]
|
|
virtual void | transform (const MGTransf &tr) |
| general transformation. [詳解]
|
|
bool | type_is (const MGAbstractGels &types) const |
|
virtual void | display_arrows (mgSysGL &sgl) const |
|
virtual void | display_break_points (mgSysGL &sgl) const |
|
virtual void | display_control_polygon (mgSysGL &sgl) const |
|
virtual void | display_curvatures (mgSysGL &sgl, double scale, int density, bool use_radius) const |
|
MGRenderAttr defines the attributes of rendering attributes.
These attrubutes are not used for drawing(line drawing mode). Regarding to m_material, m_back_material, MGRenderAttr behaves just like auto_ptr. That is, these three pointers are newed object pointers, and when used in copy constructor or assignment, the ownerships are transfered to the new MGRenderAttr object.