|
| | MGContext () |
| |
| | MGContext (const MGBox &bx) |
| |
| | MGContext (const MGSnapAttrib &snap_attrib, int line_density, const MGColor &Bcolor, const MGColor &Gcolor, const MGColor &Hcolor, float smooth, float pick_aperture, const MGglViewAttrib &view, const MGColor gridColor[4], const int gridNum[2], const double gridSpan[2], const double torelance[6], const mgTLInputParam &tessellate_param, MGAppearance *appearance=0) |
| |
| | MGContext (const MGContext &context) |
| | copy constructor [詳解]
|
| |
| | ~MGContext () |
| |
| void | InitializeCPlane (const MGBox &box) |
| | Initialize grid params. [詳解]
|
| |
| MGContext & | operator= (const MGGel &gel2) |
| | Assignment operator. [詳解]
|
| |
| MGContext & | operator= (const MGContext &gel2) |
| |
| bool | operator< (const MGContext &gel2) const |
| | comparison [詳解]
|
| |
| bool | operator< (const MGGel &gel2) const |
| |
| MGContext * | clone () const |
| |
| const MGSnapAttrib & | snap_attrib () const |
| | set/get snap attrib data. [詳解]
|
| |
| MGSnapAttrib & | snap_attrib () |
| |
| void | set_snap_attrib (const MGSnapAttrib &snap_attrib) |
| |
| int | line_density () const |
| |
| void | set_line_density (int line_density) |
| |
| const MGColor & | Bcolor () const |
| | set/get color data. [詳解]
|
| |
| MGColor & | Bcolor () |
| | Background color. [詳解]
|
| |
| void | set_Bcolor (const MGColor &Bcolor) |
| | Background color setter. [詳解]
|
| |
| const MGColor & | Gcolor () const |
| | Object lines color. [詳解]
|
| |
| MGColor & | Gcolor () |
| | Object lines color. [詳解]
|
| |
| void | set_Gcolor (const MGColor &Gcolor) |
| | Object lines color setter. [詳解]
|
| |
| const MGColor & | Hcolor () const |
| | Object highlight color. [詳解]
|
| |
| MGColor & | Hcolor () |
| | Object highlight color. [詳解]
|
| |
| void | set_Hcolor (const MGColor &Hcolor) |
| | Object highlight color setter. [詳解]
|
| |
| const MGColor * | gridColors () const |
| |
| const int * | gridNum () const |
| |
| const double * | gridSpan () const |
| |
| void | set_gridColors (const MGColor gridColor[4]) |
| |
| void | set_gridNum (const int gridNum[2]) |
| |
| void | set_gridSpan (const double gridSpan[2]) |
| |
| const MGColor & | gridColor () const |
| | Grid color. [詳解]
|
| |
| MGColor & | gridColor () |
| | Grid color. [詳解]
|
| |
| void | set_gridColor (const MGColor &color) |
| | Grid color setter. [詳解]
|
| |
| const MGColor & | axisXcolor () const |
| | X-axis(u-axis) color. [詳解]
|
| |
| MGColor & | axisXcolor () |
| | X-axis(u-axis) color. [詳解]
|
| |
| void | set_axisXcolor (const MGColor &color) |
| | X-axis(u-axis) color setter. [詳解]
|
| |
| const MGColor & | axisYcolor () const |
| | Y-axis(v-axis) color. [詳解]
|
| |
| MGColor & | axisYcolor () |
| | Y-axis(v-axis) color. [詳解]
|
| |
| void | set_axisYcolor (const MGColor &color) |
| | Y-axis(v-axis) color setter. [詳解]
|
| |
| const MGColor & | axisZcolor () const |
| | Z-axis color. [詳解]
|
| |
| MGColor & | axisZcolor () |
| | Z-axis color. [詳解]
|
| |
| void | set_axisZcolor (const MGColor &color) |
| | Z-axis color setter. [詳解]
|
| |
| float | smooth () const |
| |
| void | set_smooth (float smooth) |
| |
| float | pick_aperture () const |
| |
| void | set_pick_aperture (double pick_aperture) |
| |
| void | set_pick_aperture (float pick_aperture) |
| |
| const MGglViewAttrib & | theView () const |
| | Get the view attribute. [詳解]
|
| |
| MGglViewAttrib & | theView () |
| |
| void | set_view (const MGglViewAttrib &view) |
| | Set the view data of the view. [詳解]
|
| |
| void | set_view_context (const MGOpenGLView &view) |
| | Set the viewing context of MGOpenGLView view to the document. [詳解]
|
| |
| void | applyDrawAttrib (MGOpenGLView &view) |
| |
| double * | tolerance () |
| | Tolerance data. [詳解]
|
| |
| const double * | tolerance () const |
| |
| void | set_tolerance (double wc_zero, double rc_zero, double mach_zero, double line_zero, double angle_zero, double max_knot_ratio) |
| |
| const mgTLInputParam & | tessellate_param () const |
| | Tessellation parameter. [詳解]
|
| |
| mgTLInputParam & | tessellate_param () |
| |
| void | set_tessellate_param (const mgTLInputParam &tessellate_param) |
| |
| double | tess_maximum_edge_length () const |
| |
| double | tess_surface_tolerance () const |
| |
| double | tess_curve_tolerance () const |
| |
| const MGAppearance * | appearance () const |
| | Appearance data. [詳解]
|
| |
| MGAppearance * | appearance () |
| |
| void | set_appearance (MGAppearance *appearance) |
| | set appearance. [詳解]
|
| |
| long | identify_type () const |
| | Return This object's typeID. [詳解]
|
| |
| void | exec_tolerance () const |
| | Execution of MGCL tolerance. Set the MGCL tolerance of this context. [詳解]
|
| |
| void | exec_draw_attributes (mgVBO &vbo) const |
| |
| void | exec_render_attributes (mgVBO &vbo) const |
| |
| std::ostream & | out (std::ostream &ostrm) const |
| | stream text output. [詳解]
|
| |
| std::string | whoami () const |
| |
| void | ReadMembers (MGIfstream &buf) |
| | Read all member data. [詳解]
|
| |
| void | WriteMembers (MGOfstream &buf) const |
| | Write all member data. [詳解]
|
| |
| 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 | drawAttrib (mgVBO &vbo, bool no_color=false) const |
| | draw attribute data. [詳解]
|
| |
| 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 |
| |
MGContext defines the attributes of a document.
MGContext includes snap attributes, colors(background, object, highlight), smoothness definition data to approximate spline data by a polyline, pick-aperture, viewing matrix data of the main view, construction plane's attributes, tollerances, and tessellation parameters, and other default appearance data.