MGCL V10  V10
MGCL V10
 全て クラス 名前空間 関数 変数 型定義 列挙型 列挙値 フレンド グループ ページ
MGContext クラス

MGContext defines the attributes of a document. [詳解]

MGContext の継承関係図
MGAttrib MGGel

公開メンバ関数

 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. [詳解]
 
MGContextoperator= (const MGGel &gel2)
 Assignment operator. [詳解]
 
MGContextoperator= (const MGContext &gel2)
 
bool operator< (const MGContext &gel2) const
 comparison [詳解]
 
bool operator< (const MGGel &gel2) const
 
MGContextclone () const
 
const MGSnapAttribsnap_attrib () const
 set/get snap attrib data. [詳解]
 
MGSnapAttribsnap_attrib ()
 
void set_snap_attrib (const MGSnapAttrib &snap_attrib)
 
int line_density () const
 
void set_line_density (int line_density)
 
const MGColorBcolor () const
 set/get color data. [詳解]
 
MGColorBcolor ()
 Background color. [詳解]
 
void set_Bcolor (const MGColor &Bcolor)
 Background color setter. [詳解]
 
const MGColorGcolor () const
 Object lines color. [詳解]
 
MGColorGcolor ()
 Object lines color. [詳解]
 
void set_Gcolor (const MGColor &Gcolor)
 Object lines color setter. [詳解]
 
const MGColorHcolor () const
 Object highlight color. [詳解]
 
MGColorHcolor ()
 Object highlight color. [詳解]
 
void set_Hcolor (const MGColor &Hcolor)
 Object highlight color setter. [詳解]
 
const MGColorgridColors () 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 MGColorgridColor () const
 Grid color. [詳解]
 
MGColorgridColor ()
 Grid color. [詳解]
 
void set_gridColor (const MGColor &color)
 Grid color setter. [詳解]
 
const MGColoraxisXcolor () const
 X-axis(u-axis) color. [詳解]
 
MGColoraxisXcolor ()
 X-axis(u-axis) color. [詳解]
 
void set_axisXcolor (const MGColor &color)
 X-axis(u-axis) color setter. [詳解]
 
const MGColoraxisYcolor () const
 Y-axis(v-axis) color. [詳解]
 
MGColoraxisYcolor ()
 Y-axis(v-axis) color. [詳解]
 
void set_axisYcolor (const MGColor &color)
 Y-axis(v-axis) color setter. [詳解]
 
const MGColoraxisZcolor () const
 Z-axis color. [詳解]
 
MGColoraxisZcolor ()
 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 MGglViewAttribtheView () const
 Get the view attribute. [詳解]
 
MGglViewAttribtheView ()
 
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 mgTLInputParamtessellate_param () const
 Tessellation parameter. [詳解]
 
mgTLInputParamtessellate_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 MGAppearanceappearance () const
 Appearance data. [詳解]
 
MGAppearanceappearance ()
 
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. [詳解]
 
- 基底クラス MGAttrib に属する継承公開メンバ関数
virtual ~MGAttrib ()
 Virtual Destructor. [詳解]
 
virtual MGAttriboperator= (const MGAttrib &gel2)
 
MGAttribattrib ()
 Return MGAttrib pointer if this MGGel is an MGAttrib, else return null. [詳解]
 
const MGAttribattrib () const
 
const MGObjectincludes_object () const
 Test if this gel includes an object. [詳解]
 
MGObjectincludes_object ()
 Test if this gel includes an object. [詳解]
 
- 基底クラス MGGel に属する継承公開メンバ関数
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 mgVBOdlist_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 MGGroupgroup ()
 Return MGGroup pointer if this MGGel is an MGGroup, else return null. [詳解]
 
virtual const MGGroupgroup () const
 
virtual MGObjectobject ()
 Return MGObject pointer if this MGGel is an MGObject, else return null. [詳解]
 
virtual const MGObjectobject () const
 
virtual MGGeometrygeometry ()
 Return MGGeometry pointer if this MGGel is an MGGeometry, else return null. [詳解]
 
virtual const MGGeometrygeometry () const
 
virtual MGPointpoint ()
 Return point pointer if this MGGel is an MGPoint, else return null. [詳解]
 
virtual const MGPointpoint () const
 
virtual MGCurvecurve ()
 Return curve pointer if this MGGel is an MGCurve, else return null. [詳解]
 
virtual const MGCurvecurve () const
 
virtual MGSurfacesurf ()
 Return MGSurface pointer if this MGGel is an MGSurface, else return null. [詳解]
 
virtual const MGSurfacesurf () const
 
virtual MGTopologytopology ()
 Return MGTopology pointer if this MGGel is an MGTopology, else return null. [詳解]
 
virtual const MGTopologytopology () const
 
virtual MGFaceface ()
 Return MGFace pointer if this MGGel is an MGFace, else return null. [詳解]
 
virtual const MGFaceface () const
 
virtual MGShellshell ()
 Return MGShell pointer if this MGGel is an MGShell, else return null. [詳解]
 
virtual const MGShellshell () 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.

構築子と解体子

MGContext::MGContext ( )
MGContext::MGContext ( const MGBox bx)
MGContext::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 
)
引数
snap_attribSnap data
line_densityline density for a surface to draw in wire mode.
BcolorBackground color.
GcolorObject lines color.
HcolorObject highlight color.
smoothSmoothness of the curves to draw. 1/smooth is the division number of a curve whose length is the window width. When smooth becomes small, smoothness increases.
pick_aperturePick aperture. Number of pixels to allow picking.
viewMGglViewAttrib of the mainView of the document.
gridNumConstruction plane's grid colors. Construction plane's grid number.
gridSpanConstruction plane's grid span.
torelanceMGCL Tolerance. [0]=wc_zero; [1]=rc_zero; [2]=mach_zero; [3]=line_zero; [4]=angle_zero; [5]=max_knot_ratio;
tessellate_paramtessellation parameter.
appearancemust be a newed object of MGAppearance. the ownership will be transfered to this MGContext.
MGContext::MGContext ( const MGContext context)

copy constructor

MGContext::~MGContext ( )

関数詳解

const MGAppearance* MGContext::appearance ( ) const
inline

Appearance data.

MGAppearance* MGContext::appearance ( )
inline
void MGContext::applyDrawAttrib ( MGOpenGLView view)

Apply draw attrib data. Draw attribs are colors(Bcolor, Gcolor, Hcolor), line approximation smoothness, pick aperture, and MGDrawParam.

const MGColor& MGContext::axisXcolor ( ) const
inline

X-axis(u-axis) color.

MGColor& MGContext::axisXcolor ( )
inline

X-axis(u-axis) color.

const MGColor& MGContext::axisYcolor ( ) const
inline

Y-axis(v-axis) color.

MGColor& MGContext::axisYcolor ( )
inline

Y-axis(v-axis) color.

const MGColor& MGContext::axisZcolor ( ) const
inline

Z-axis color.

MGColor& MGContext::axisZcolor ( )
inline

Z-axis color.

const MGColor& MGContext::Bcolor ( ) const
inline

set/get color data.

Background color.

MGColor& MGContext::Bcolor ( )
inline

Background color.

MGContext* MGContext::clone ( ) const
inlinevirtual

Generate copied gel of this gel. Returned is a newed object. User must delete the object.

MGGelを実装しています。

void MGContext::exec_draw_attributes ( mgVBO vbo) const

Execution of drawing OpenGL attributes. Valid OpenGL rendering context must be made current.

void MGContext::exec_render_attributes ( mgVBO vbo) const

Execution of rendering OpenGL attributes. Valid OpenGL rendering context must be made current.

void MGContext::exec_tolerance ( ) const

Execution of MGCL tolerance. Set the MGCL tolerance of this context.

const MGColor& MGContext::Gcolor ( ) const
inline

Object lines color.

MGColor& MGContext::Gcolor ( )
inline

Object lines color.

const MGColor& MGContext::gridColor ( ) const
inline

Grid color.

MGColor& MGContext::gridColor ( )
inline

Grid color.

const MGColor* MGContext::gridColors ( ) const
inline

CPlane's grid colors. [0]=line, [1]=x-axis, [2]=y-axis, [3]=z-axis.

const int* MGContext::gridNum ( ) const
inline
const double* MGContext::gridSpan ( ) const
inline
const MGColor& MGContext::Hcolor ( ) const
inline

Object highlight color.

MGColor& MGContext::Hcolor ( )
inline

Object highlight color.

long MGContext::identify_type ( ) const
inlinevirtual

Return This object's typeID.

MGAttribを再実装しています。

void MGContext::InitializeCPlane ( const MGBox box)

Initialize grid params.

int MGContext::line_density ( ) const
inline
bool MGContext::operator< ( const MGContext gel2) const

comparison

bool MGContext::operator< ( const MGGel gel2) const
virtual

MGGelを再実装しています。

MGContext& MGContext::operator= ( const MGGel gel2)
virtual

Assignment operator.

MGGelを再実装しています。

MGContext& MGContext::operator= ( const MGContext gel2)
std::ostream& MGContext::out ( std::ostream &  ostrm) const
virtual

stream text output.

MGAttribを実装しています。

float MGContext::pick_aperture ( ) const
inline

pick_aperture. The pick_aperture data is used for MGOpenGLView. See the explanation.

void MGContext::ReadMembers ( MGIfstream buf)
virtual

Read all member data.

MGAttribを再実装しています。

void MGContext::set_appearance ( MGAppearance appearance)

set appearance.

引数
appearanceappearance must be a newed object. The ownership will be transfered to this MGContext.
void MGContext::set_axisXcolor ( const MGColor color)
inline

X-axis(u-axis) color setter.

void MGContext::set_axisYcolor ( const MGColor color)
inline

Y-axis(v-axis) color setter.

void MGContext::set_axisZcolor ( const MGColor color)
inline

Z-axis color setter.

void MGContext::set_Bcolor ( const MGColor Bcolor)

Background color setter.

void MGContext::set_Gcolor ( const MGColor Gcolor)

Object lines color setter.

void MGContext::set_gridColor ( const MGColor color)
inline

Grid color setter.

void MGContext::set_gridColors ( const MGColor  gridColor[4])
void MGContext::set_gridNum ( const int  gridNum[2])
void MGContext::set_gridSpan ( const double  gridSpan[2])
void MGContext::set_Hcolor ( const MGColor Hcolor)

Object highlight color setter.

void MGContext::set_line_density ( int  line_density)
inline
void MGContext::set_pick_aperture ( double  pick_aperture)
inline
void MGContext::set_pick_aperture ( float  pick_aperture)
inline
void MGContext::set_smooth ( float  smooth)
inline
void MGContext::set_snap_attrib ( const MGSnapAttrib snap_attrib)
inline
void MGContext::set_tessellate_param ( const mgTLInputParam tessellate_param)
inline
void MGContext::set_tolerance ( double  wc_zero,
double  rc_zero,
double  mach_zero,
double  line_zero,
double  angle_zero,
double  max_knot_ratio 
)
void MGContext::set_view ( const MGglViewAttrib view)

Set the view data of the view.

void MGContext::set_view_context ( const MGOpenGLView view)

Set the viewing context of MGOpenGLView view to the document.

引数
viewview to copy from.
float MGContext::smooth ( ) const
inline

set/get smooth data. The smooht data is used for MGOpenGLView. See the explanation. Smoothness of the curves to draw.

const MGSnapAttrib& MGContext::snap_attrib ( ) const
inline

set/get snap attrib data.

MGSnapAttrib& MGContext::snap_attrib ( )
inline
double MGContext::tess_curve_tolerance ( ) const
inline
double MGContext::tess_maximum_edge_length ( ) const
inline
double MGContext::tess_surface_tolerance ( ) const
inline
const mgTLInputParam& MGContext::tessellate_param ( ) const
inline

Tessellation parameter.

mgTLInputParam& MGContext::tessellate_param ( )
inline
const MGglViewAttrib& MGContext::theView ( ) const
inline

Get the view attribute.

MGglViewAttrib& MGContext::theView ( )
inline
double* MGContext::tolerance ( )
inline

Tolerance data.

const double* MGContext::tolerance ( ) const
inline
std::string MGContext::whoami ( ) const
inlinevirtual

MGGelを実装しています。

void MGContext::WriteMembers ( MGOfstream buf) const
virtual

Write all member data.

MGAttribを再実装しています。


このクラス詳解は次のファイルから抽出されました: