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

MGGLAttrib is an abstract class which defines the enum of undefined or disabled. [詳解]

MGGLAttrib の継承関係図
MGAttrib MGGel MGColor MGLight MGLights MGLineStipple MGLineWidth MGName MGRenderAttr MGDirectionalLight MGPointLight MGSpotLight

公開型

enum  FLAG { UNDEFINED =-3, DISABLED =-2 }
 
enum  ATTRIB_MASK {
  CURRENT_BIT = GL_CURRENT_BIT, POINT_BIT = GL_POINT_BIT, LINE_BIT = GL_LINE_BIT, POLYGON_BIT = GL_POLYGON_BIT,
  POLYGON_STIPPLE_BIT = GL_POLYGON_STIPPLE_BIT, PIXEL_MODE_BIT = GL_PIXEL_MODE_BIT, LIGHTING_BIT = GL_LIGHTING_BIT, FOG_BIT = GL_FOG_BIT,
  DEPTH_BUFFER_BIT = GL_DEPTH_BUFFER_BIT, ACCUM_BUFFER_BIT = GL_ACCUM_BUFFER_BIT, STENCIL_BUFFER_BIT = GL_STENCIL_BUFFER_BIT, VIEWPORT_BIT = GL_VIEWPORT_BIT,
  TRANSFORM_BIT = GL_TRANSFORM_BIT, ENABLE_BIT = GL_ENABLE_BIT, COLOR_BUFFER_BIT = GL_COLOR_BUFFER_BIT, HINT_BIT = GL_HINT_BIT,
  EVAL_BIT = GL_EVAL_BIT, LIST_BIT = GL_LIST_BIT, TEXTURE_BIT = GL_TEXTURE_BIT, SCISSOR_BIT = GL_SCISSOR_BIT
}
 

公開メンバ関数

 MGGLAttrib (int flag=UNDEFINED)
 
virtual MGGLAttriboperator= (const MGGLAttrib &gel2)
 
virtual MGGLAttribclone () const =0
 Generate a newed clone object. [詳解]
 
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 ()
 
virtual void drawAttrib (mgVBO &vbo, bool no_color=false) const =0
 draw GLAttribute process. [詳解]
 
virtual bool is_highlight_attrib () const
 Test if this is highlight attrib or not. [詳解]
 
virtual void render (mgVBO &vbo) const =0
 render GLAttribute process. [詳解]
 
virtual void set_draw_attrib_mask (unsigned int &mask) const =0
 Turn on the appropriate mask bit for this attribute. See glPushAttrib(). [詳解]
 
virtual void reset_draw_attrib_mask (unsigned int &mask) const =0
 Turn off the appropriate mask bit for this attribute. See glPushAttrib(). [詳解]
 
virtual void set_render_attrib_mask (unsigned int &mask) const =0
 Turn on the appropriate mask bit for this attribute. See glPushAttrib(). [詳解]
 
virtual void reset_render_attrib_mask (unsigned int &mask) const =0
 Turn off the appropriate mask bit for this attribute. See glPushAttrib(). [詳解]
 
virtual long identify_type () const
 Return This object's typeID. [詳解]
 
virtual void ReadMembers (MGIfstream &buf)
 Read all member data. [詳解]
 
virtual void WriteMembers (MGOfstream &buf) const
 Write all member data. [詳解]
 
virtual std::ostream & out (std::ostream &) const
 Output virtual function. [詳解]
 
bool same_type (const MGGLAttrib &at2) const
 Compare if this and at2 are the same leaf MGGLAttrib class. [詳解]
 
- 基底クラス 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 MGGeloperator= (const MGGel &gel2)
 
virtual bool operator== (const MGGel &gel2) const
 Comparison. [詳解]
 
virtual bool operator!= (const MGGel &gel2) const
 
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 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
 
virtual std::string whoami () const =0
 

限定公開メンバ関数

MGGLAttribset_glattrib (const MGGLAttrib &gel2)
 Assignment. [詳解]
 

限定公開変数類

int m_flag
 

詳解

MGGLAttrib is an abstract class which defines the enum of undefined or disabled.

Subclass of MGGLAttrib can use m_flag as a part of its own class attributes. In this case, -3 and -2 must be avoided. -3 and -2 do not appear in OpenGL attributes.

構築子と解体子

MGGLAttrib::MGGLAttrib ( int  flag = UNDEFINED)
inline

関数詳解

virtual MGGLAttrib* MGGLAttrib::clone ( ) const
pure virtual

Generate a newed clone object.

MGGelを実装しています。

MGColor, MGRenderAttr, MGLights, MGLight, MGSpotLight, MGLineStipple, MGPointLight, MGDirectionalLight, MGLineWidth, MGNameで実装されています。

int MGGLAttrib::data ( ) const
inline

retrieve the data.

int& MGGLAttrib::data ( )
inline
bool MGGLAttrib::defined ( ) const
inline
bool MGGLAttrib::disabled ( ) const
inline
virtual void MGGLAttrib::drawAttrib ( mgVBO vbo,
bool  no_color = false 
) const
pure virtual

draw GLAttribute process.

引数
vboThe target graphic object.
no_colorif true, color attribute will be neglected.

MGGelを再実装しています。

MGColor, MGRenderAttr, MGLights, MGLight, MGLineStipple, MGLineWidth, MGNameで実装されています。

bool MGGLAttrib::enabled ( ) const
inline
virtual long MGGLAttrib::identify_type ( ) const
inlinevirtual

Return This object's typeID.

MGAttribを再実装しています。

MGColor, MGRenderAttr, MGLights, MGPointLight, MGSpotLight, MGLineStipple, MGLineWidth, MGDirectionalLight, MGNameで再実装されています。

virtual bool MGGLAttrib::is_highlight_attrib ( ) const
inlinevirtual

Test if this is highlight attrib or not.

MGColor, MGRenderAttr, MGLineStipple, MGLineWidthで再実装されています。

virtual MGGLAttrib& MGGLAttrib::operator= ( const MGGLAttrib gel2)
inlinevirtual
virtual std::ostream& MGGLAttrib::out ( std::ostream &  ) const
virtual

Output virtual function.

MGAttribを実装しています。

MGColor, MGRenderAttr, MGLight, MGLights, MGPointLight, MGSpotLight, MGLineStipple, MGLineWidth, MGDirectionalLight, MGNameで再実装されています。

virtual void MGGLAttrib::ReadMembers ( MGIfstream buf)
virtual

Read all member data.

MGAttribを再実装しています。

MGColor, MGRenderAttr, MGLight, MGLights, MGPointLight, MGSpotLight, MGLineStipple, MGLineWidth, MGDirectionalLight, MGNameで再実装されています。

virtual void MGGLAttrib::render ( mgVBO vbo) const
pure virtual

render GLAttribute process.

MGColor, MGRenderAttr, MGLight, MGLights, MGLineStipple, MGLineWidth, MGNameで実装されています。

virtual void MGGLAttrib::reset_draw_attrib_mask ( unsigned int &  mask) const
pure virtual

Turn off the appropriate mask bit for this attribute. See glPushAttrib().

MGColor, MGRenderAttr, MGLights, MGLight, MGLineStipple, MGLineWidth, MGNameで実装されています。

virtual void MGGLAttrib::reset_render_attrib_mask ( unsigned int &  mask) const
pure virtual

Turn off the appropriate mask bit for this attribute. See glPushAttrib().

MGColor, MGRenderAttr, MGLight, MGLights, MGLineStipple, MGLineWidth, MGNameで実装されています。

bool MGGLAttrib::same_type ( const MGGLAttrib at2) const

Compare if this and at2 are the same leaf MGGLAttrib class.

void MGGLAttrib::set_disabled ( )
inline
virtual void MGGLAttrib::set_draw_attrib_mask ( unsigned int &  mask) const
pure virtual

Turn on the appropriate mask bit for this attribute. See glPushAttrib().

MGColor, MGRenderAttr, MGLights, MGLight, MGLineStipple, MGLineWidth, MGNameで実装されています。

MGGLAttrib& MGGLAttrib::set_glattrib ( const MGGLAttrib gel2)
protected

Assignment.

virtual void MGGLAttrib::set_render_attrib_mask ( unsigned int &  mask) const
pure virtual

Turn on the appropriate mask bit for this attribute. See glPushAttrib().

MGColor, MGRenderAttr, MGLight, MGLights, MGLineStipple, MGLineWidth, MGNameで実装されています。

void MGGLAttrib::set_undefined ( )
inline
bool MGGLAttrib::undefined ( ) const
inline
virtual void MGGLAttrib::WriteMembers ( MGOfstream buf) const
virtual

Write all member data.

MGAttribを再実装しています。

MGColor, MGRenderAttr, MGLight, MGLights, MGPointLight, MGSpotLight, MGLineStipple, MGLineWidth, MGDirectionalLight, MGNameで再実装されています。

メンバ詳解

int MGGLAttrib::m_flag
protected

=-3:undefined, will be inheritted. =-2:disabled. =other:each subclass's data(enabled).


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