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

Is an abstract class which provides interfaces of MGGel that has MGAppearance. [詳解]

MGAttribedGel の継承関係図
MGGel MGGroup MGObject MGGeometry MGStl MGTopology MGCurve MGPoint MGSurface MGCellBase MGComplex MGBSumCurve MGCompositeCurve MGEllipse MGLBRep MGRLBRep MGStraight MGSurfCurve MGTrimmedCurve MGBSumSurf MGCylinder MGPlane MGRSBRep MGSBRep MGSphere MGCellNB MGPVertex MGBoundary

公開メンバ関数

 MGAttribedGel ()
 void constructor. [詳解]
 
 MGAttribedGel (const MGAttribedGel &gel2)
 copy constructor. [詳解]
 
virtual MGAttribedGeloperator= (const MGAttribedGel &gel2)
 
virtual ~MGAttribedGel ()
 
virtual MGAppearanceappearance ()=0
 
virtual const MGAppearanceappearance () const =0
 
void copy_appearance (const MGAttribedGel &gel2)
 
mgVBOdlist_name () const
 
virtual bool displayList_is_made (MGCL::VIEWMODE vmode) const
 Judge if the display list for vmode is made or not. [詳解]
 
void deleteDlistName () const
 
virtual void drawAttrib (mgVBO &vbo, bool no_color=false) const
 Process of draw or render attributes. [詳解]
 
virtual void render_attribute () const
 
virtual MGAppearanceensure_appearance ()=0
 
virtual int get_draw_attrib_mask () const
 Obtain attribute mask for glPushAttrib(). [詳解]
 
virtual int get_render_attrib_mask () const
 
int getVBOElementsNumber () const
 Get the number of elements of m_dlistName. [詳解]
 
int getVBOShaderElementsNumber () const
 Get the number of shading elements of m_dlistName. [詳解]
 
virtual bool no_display () const
 
virtual void remove_appearance ()=0
 Remove the MGAppearance of this MGAttribedGel. [詳解]
 
void remove_GLattrib (long tid)
 Removed the attribute of specified type. [詳解]
 
virtual void set_GLattrib (MGGLAttrib *attr)
 
virtual void set_display ()
 Set this group as display or no display group. [詳解]
 
virtual void set_no_display ()
 
bool visible () const
 
virtual void set_appearance (const MGAppearance &appr2)=0
 
void set_name (const MGName &newName)
 
const MGNameget_name () const
 
void set_color (const MGColor &newColor)
 
const MGColorget_color () const
 
void setDlistName (mgVBO *vbo=0) const
 
void setDirty (bool is_dirty) const
 Set dirty flag(s) of this VBO(m_dlistName). [詳解]
 
- 基底クラス 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 std::ostream & out (std::ostream &) const =0
 Output virtual function. [詳解]
 
virtual int out_to_IGES (MGIgesOfstream &igesfile, int SubordinateEntitySwitch=0) const
 
virtual MGGelclone () const =0
 
virtual void make_display_list (MGCL::VIEWMODE vmode=MGCL::DONTCARE) const
 Make a display list of this gel. [詳解]
 
virtual int manifold_dimension () const
 
virtual MGAttribattrib ()
 Return MGAttrib pointer if this MGGel is an MGAttrib, else return null. [詳解]
 
virtual const MGAttribattrib () 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 long identify_type () const =0
 Return This object's typeID. [詳解]
 
virtual const MGObjectincludes_object () const =0
 Test if this gel includes an object. [詳解]
 
virtual MGObjectincludes_object ()=0
 
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
 

限定公開変数類

std::auto_ptr< mgVBOm_dlistName
 display name if m_dlistName!=0; [詳解]
 

その他の継承メンバ

- 基底クラス MGGel に属する継承限定公開メンバ関数
virtual void ReadMembers (MGIfstream &buf)
 Read all member data. [詳解]
 
virtual void WriteMembers (MGOfstream &buf) const
 Write all member data. [詳解]
 

詳解

Is an abstract class which provides interfaces of MGGel that has MGAppearance.

MGAppearance has MGAttrib's that decorate MGGel. MGAttribedGel is MGGel that has MGAppearance.

構築子と解体子

MGAttribedGel::MGAttribedGel ( )
inline

void constructor.

MGAttribedGel::MGAttribedGel ( const MGAttribedGel gel2)

copy constructor.

virtual MGAttribedGel::~MGAttribedGel ( )
virtual

関数詳解

virtual MGAppearance* MGAttribedGel::appearance ( )
pure virtual

Get the MGAppearance pointer in this group. If not defined, null will be returned.

MGGroup, MGObjectで実装されています。

virtual const MGAppearance* MGAttribedGel::appearance ( ) const
pure virtual

MGGroup, MGObjectで実装されています。

void MGAttribedGel::copy_appearance ( const MGAttribedGel gel2)
void MGAttribedGel::deleteDlistName ( ) const

Delete display list name from MGDNameControl. MGAttribedGel's deleteDlistName deletes mgVBO of this.

virtual bool MGAttribedGel::displayList_is_made ( MGCL::VIEWMODE  vmode) const
virtual

Judge if the display list for vmode is made or not.

mgVBO* MGAttribedGel::dlist_name ( ) const
virtual

Obtain display list name. MGAttribedGel's deleteDlistName only deletes Dname to pointer map list.

MGGelを再実装しています。

virtual void MGAttribedGel::drawAttrib ( mgVBO vbo,
bool  no_color = false 
) const
virtual

Process of draw or render attributes.

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

MGGelを再実装しています。

MGGroupで再実装されています。

virtual MGAppearance* MGAttribedGel::ensure_appearance ( )
pure virtual

Make sure that this MGAttribedGel has appearance, and get the MGAppearance pointer.

MGGroup, MGObjectで実装されています。

const MGColor* MGAttribedGel::get_color ( ) const

Get the color of this MGAttribedGel. If this had no color, null will be returned. If this did have a color, the pointer is returned.

virtual int MGAttribedGel::get_draw_attrib_mask ( ) const
virtual

Obtain attribute mask for glPushAttrib().

const MGName* MGAttribedGel::get_name ( ) const

Get the name of this MGAttribedGel. If this had no name, null will be returned. If this did have a name, the pointer is returned.

virtual int MGAttribedGel::get_render_attrib_mask ( ) const
virtual
int MGAttribedGel::getVBOElementsNumber ( ) const

Get the number of elements of m_dlistName.

int MGAttribedGel::getVBOShaderElementsNumber ( ) const

Get the number of shading elements of m_dlistName.

virtual bool MGAttribedGel::no_display ( ) const
virtual

Test if this group is attributed as no display. true if attributed as no display.

MGGelを再実装しています。

virtual MGAttribedGel& MGAttribedGel::operator= ( const MGAttribedGel gel2)
virtual

Assignment. When the leaf objects of this and gel2 are not equal, this assignment does nothing.

virtual void MGAttribedGel::remove_appearance ( )
pure virtual

Remove the MGAppearance of this MGAttribedGel.

MGGroup, MGObjectで実装されています。

void MGAttribedGel::remove_GLattrib ( long  tid)

Removed the attribute of specified type.

virtual void MGAttribedGel::render_attribute ( ) const
virtual
virtual void MGAttribedGel::set_appearance ( const MGAppearance appr2)
pure virtual

MGGroup, MGObjectで実装されています。

void MGAttribedGel::set_color ( const MGColor newColor)

Set color to this MGAttribedGel. If this had a color already, the old color is replace with newColor;

virtual void MGAttribedGel::set_display ( )
virtual

Set this group as display or no display group.

virtual void MGAttribedGel::set_GLattrib ( MGGLAttrib attr)
virtual

Set the attribute in this list. attr must be a newed object, and the ownership will be transfered to this MGAppearance.

void MGAttribedGel::set_name ( const MGName newName)

Set name to this MGAttribedGel. If this had a name already, the old name is replace with newName;

virtual void MGAttribedGel::set_no_display ( )
virtual
void MGAttribedGel::setDirty ( bool  is_dirty) const

Set dirty flag(s) of this VBO(m_dlistName).

引数
is_dirty=true if dirty and need to remake.
void MGAttribedGel::setDlistName ( mgVBO vbo = 0) const

Set DlistName. vbo must be newed one, and the ownership is transfered to this MGAttribedGel.

bool MGAttribedGel::visible ( ) const
inline

メンバ詳解

std::auto_ptr<mgVBO> MGAttribedGel::m_dlistName
mutableprotected

display name if m_dlistName!=0;


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