|
| MGConstructionPlane () |
|
| MGConstructionPlane (double origin[3], double uaxis[3], double vaxis[3], double uspan, double vspan, int uline_num, int vline_num, double nspan=1.) |
|
| MGConstructionPlane (const MGPlane &plane, double uspan, double vspan, int uline_num, int vline_num, double nspan=1.) |
|
void | bind_to_grid (const MGPosition &uv, MGPosition &uvout) const |
|
void | change_origin (const MGPosition &new_origin) |
| Change origin point. [詳解]
|
|
MGPosition | convert_to_world (const MGPosition &cplane_coord) const |
|
MGPosition | convert_from_world (const MGPosition &world_coord) const |
|
virtual void | make_display_list (MGCL::VIEWMODE vmode=MGCL::DONTCARE) |
| Draw this plane using OpenGL. [詳解]
|
|
bool | is_bind_to_grid () const |
|
MGVector | eval (const MGPosition &uv) const |
| Obtain the position data of the parameter (u,v). [詳解]
|
|
MGVector | eval (double u, double v) const |
|
void | get_colors (MGColor &lineColor, MGColor &uaxisColor, MGColor &vaxisColor) const |
| Get line and axis colors. [詳解]
|
|
void | get_grid_data (double &uspan, double &vspan, int &uline_num, int &vline_num, double &nspan) const |
| Obtain the grid data of this. [詳解]
|
|
MGPosition | locate (const MGStraight &sl, MGPosition &uv) const |
|
bool | disabled () const |
|
bool | enabled () const |
|
void | set_bind_to_grid_enable () |
| set bind_to_grid enable or disable. [詳解]
|
|
void | set_bind_to_grid_disable () |
|
void | importGridAttrib (const MGContext &ctx) |
|
void | setGridDataByBox (const MGBox &box, int view_num=1, const MGColor *gridColors=0) |
|
void | set_grid_data (const MGPlane &plane, double uspan, double vspan, int uline_num, int vline_num, double nspan=1) |
| Compute grid data and the plane from the plane and the grid span data. [詳解]
|
|
bool | valid () const |
|
const MGPlane & | plane () const |
|
MGPlane & | plane () |
|
double | uspan () const |
|
double | vspan () const |
|
int | vnum () const |
|
int | unum () const |
|
void | set_colors (const MGColor colors[3]) |
| set line, u-axis, and v-axis colors. [詳解]
|
|
void | set_colorsByViewID (int vid, const MGColor colors[4]) |
|
void | set_line_color (const MGColor &color) |
| set grid line color. [詳解]
|
|
void | set_uaxis_color (const MGColor &color) |
| set uaxis color. [詳解]
|
|
void | set_vaxis_color (const MGColor &color) |
| set vaxis color. [詳解]
|
|
void | set_disable () |
|
void | set_enable () |
|
void | set_span (double span) |
|
void | set_uspan (double span) |
|
void | set_vspan (double span) |
|
void | set_num (int line_num) |
|
void | set_unum (int unum) |
|
void | set_vnum (int vnum) |
|
void | set_plane (const MGPlane &plane) |
|
| mgVBO () |
| 非MGAttribedGel用のconstructor. [詳解]
|
|
| mgVBO (const MGAttribedGel &gel) |
| MGAttribedGel用のconstructor. [詳解]
|
|
| mgVBO (const mgVBO &vbo) |
| MGAttribedGel用のconstructor. [詳解]
|
|
mgVBO & | operator= (const mgVBO &vbo) |
| Assignment. [詳解]
|
|
virtual | ~mgVBO () |
|
void | initializeVBO (MGCL::VIEWMODE viewMode=MGCL::DONTCARE) |
|
bool | buildVBOHierarchy (mgVBO &parent, std::vector< mgVBO * > &vbos) |
|
virtual void | draw (MGCL::VIEWMODE viewMode=MGCL::DONTCARE) |
|
virtual void | redraw (MGCL::VIEWMODE viewMode=MGCL::DONTCARE) |
|
virtual void | selectionDraw (MGCL::VIEWMODE viewMode=MGCL::DONTCARE) |
|
void | highlight () |
| highlight属性で表示する [詳解]
|
|
virtual void | clearElements (mgVBO::ELEMENT_TARGET target=BOTH) |
| Clear all the data. [詳解]
|
|
virtual void | clearStaticAttributes () |
| Static Attributes をすべてdefaultにもどす(display/noDisplayは対象外) [詳解]
|
|
mgVBOElement * | back () const |
|
mgVBOElement * | front () const |
|
iterator | begin_element () |
|
iterator | end_element () |
|
const_iterator | begin_element () const |
|
const_iterator | end_element () const |
|
int | elementNumber () const |
|
void | pop_back_element () |
|
void | push_back_element (mgVBOElement *elm) |
|
unsigned | getDName () const |
|
MGAttribedGel * | gel () const |
|
virtual GLuint | getSelectionName () const |
|
virtual bool | is_made (MGCL::VIEWMODE viewMode=MGCL::DONTCARE) |
|
bool | is_InBegin () |
|
virtual void | Begin (GLenum type, ELEMENT_TARGET target=WIRE) |
|
virtual mgVBOLeaf * | End (GLenum polygonMode=GL_FILL) |
|
void | setDirty (bool is_dirty=true, mgVBO::ELEMENT_TARGET target=BOTH) const |
|
void | setDrawType (mgGLSL::DrawType drawType) |
|
void | setTexture (mgTexture *texture) |
|
void | Color (const MGColor &colr) |
| 頂点ごとの色を指定する [詳解]
|
|
void | Color3fv (const float colr[3]) |
|
void | Color3dv (const double colr[3]) |
|
void | Color4fv (const float colr[4]) |
|
void | Color4ubv (const unsigned char rgba[4]) |
|
void | Normal (const MGVector &norml) |
| 頂点ごとのnormalを指定する [詳解]
|
|
void | Normal (float x, float y, float z) |
|
void | Normal3d (double x, double y, double z) |
|
void | Normal3fv (const float norml[3]) |
|
void | Normal3dv (const double norml[3]) |
|
virtual void | Vertex (const MGPosition &v) |
| 頂点の座標値を指定する [詳解]
|
|
virtual void | Vertex (float x, float y, float z=0.0f) |
|
virtual void | Vertex3d (double x, double y, double z=0.0) |
|
virtual void | Vertex2fv (const float v[2]) |
|
virtual void | Vertex3fv (const float v[3]) |
|
virtual void | Vertex2dv (const double v[2]) |
|
virtual void | Vertex3dv (const double v[3]) |
|
void | TexCoord (const MGPosition &v) |
| 頂点ごとのTextureの座標値を指定する [詳解]
|
|
void | TexCoord (float x, float y) |
|
void | TexCoord2d (double x, double y) |
|
void | TexCoord2fv (const float v[2]) |
|
void | TexCoord2dv (const double v[2]) |
|
void | setStaticAttribColor (const MGColor &color) |
| Static attributeを設定する。 [詳解]
|
|
void | setStaticAttribColor (const float color[4]) |
|
void | setStaticAttribColor (float r, float g, float b) |
|
void | setStaticAttribLineWidth (GLfloat size) |
|
void | setStaticAttribPointSize (GLfloat size) |
| size<=0. はundefinedを示す [詳解]
|
|
void | setLineStipple (short int factor, GLushort pattern=0) |
| size<=0. はundefinedを示す [詳解]
|
|
void | LineWidth (GLfloat size) |
|
void | disableLinePattern () |
| Line patternをdisableにして実線とする [詳解]
|
|
void | drawGel (const MGAttribedGel &gel) |
| gelのmgVBOPointerを作成しmgVBOElementとして追加する。 [詳解]
|
|
void | drawVBOLeaf (const mgVBOLeaf &leaf, ELEMENT_TARGET target=SHADING) |
| gelのmgVBOLeafPointerを作成しmgVBOElementとして追加する。 [詳解]
|
|
void | deleteGel (const MGAttribedGel &gel) |
| gelのmgVBOPointerをメンバーから外す [詳解]
|
|
void | drawArrow (const MGPosition pos[4]) |
|
void | drawBox (const MGBox &box) |
| Draw an object of class MGBox, by wireframe. [詳解]
|
|
void | drawPointSeq (const MGBPointSeq &bp, bool draw_points=true) |
|
void | drawPointSeq (const MGSPointSeq &sp, bool draw_points=true) |
|
void | draw3DVertex (const MGObject &obj) |
|
void | draw3DVertex_in_star (const MGComplex &obj) |
|
void | draw3DVertex_in_star (const MGCellBase &obj) |
|
void | drawWire_in_star (const MGComplex &obj) |
|
void | drawWire_in_star (const MGCellBase &obj) |
|
double | drawCurvaGraph (const MGCurve &curve, double scale, int density, bool use_radius, bool getLength=false) |
|
void | drawPoint (double x, double y, double z, double size=-1.) |
|
void | drawPoint (const MGPosition &pos, double size=-1.) |
|
void | drawPointInverseColor (double x, double y, double z, double size=-1.) |
|
void | drawPointInverseColor (const MGPosition &pos, double size=-1.) |
|
void | drawPointWithColor (double x, double y, double z, double outerSize, double innerSize, const MGColor *colorInner=0, const MGColor *colorOuter=0) |
|
void | drawPointWithColor (const MGPosition &pos, double outerSize, double innerSize, const MGColor *colorInner=0, const MGColor *colorOuter=0) |
|
void | drawPoints (const MGColor &boundary_color, const MGColor &inner_color, const std::vector< MGPosition > &ipos, double size=-1.) |
|
void | drawPolyline (const MGBPointSeq &line, bool closed=false) |
|
void | drawPolyline (const std::vector< MGPosition > &line, bool closed=false) |
|
void | drawStraight (const MGPosition &end, const MGPosition &start) |
| Draw a line from start to end. [詳解]
|
|
void | drawObjInParameterSpace (const MGObject &obj) |
|
void | drawRectangle (const MGBox &box) |
| Draw the rectangle of a box. [詳解]
|
|
void | drawSurfaceCurvature (const mgTL2Triangles &tld, MGCL::SURFACE_CURVATURE_KIND kind, double lower, double upper) |
| OpenGL display for the tessellation lines drawn in world view. [詳解]
|
|
void | drawSurfaceCurvature (const std::vector< mgTL2Triangles > &tldvec, MGCL::SURFACE_CURVATURE_KIND kind, double lower, double upper) |
|
void | drawShade (const mgTL2Triangles &tris, ELEMENT_TARGET target=SHADING, GLenum polygonMode=GL_FILL) |
| OpenGL shading display of a tesselated data tris. [詳解]
|
|
void | drawShade (const std::vector< mgTL2Triangles > &trisVector, ELEMENT_TARGET target=SHADING, GLenum polygonMode=GL_FILL) |
| OpenGL shading display of a tesselated data tris. [詳解]
|
|
void | drawSTL (const MGStl &stl, ELEMENT_TARGET target=SHADING, GLenum polygonMode=GL_FILL) |
| MGStlオブジェクトを描画する [詳解]
|
|
void | setDrawParam (const MGDrawParam &dpara) |
|
GLfloat | getPointSize () const |
|
GLfloat | getLineWidth () const |
|
const MGColor & | staticColor () const |
|
MGColor & | staticColor () |
|
void | setLightMode (int mode) |
| Set light mode. mode=-1:undefined, =0:disabled, =1:enabled. [詳解]
|
|
int | getLightMode () |
|
| mgVBOElement () |
|
virtual | ~mgVBOElement () |
|
virtual mgVBO * | vboPointer () |
| When this is a mgVBOPointer, return the vbo pointer referenced. [詳解]
|
|
virtual const mgVBOLeaf * | leafPointer () |
| When this is a mgVBOLeaf, return the mgVBOLeaf pointer. [詳解]
|
|
virtual void | set_display () |
| set_display/set_no_display controls if this mgVBO be displayed or not. [詳解]
|
|
virtual void | set_no_display () |
|
virtual bool | getNoDisplayMode () const |
|
bool | is_no_display () const |
|
bool | is_display () const |
|
MGConstructionPlane defines a construction plane ton input 3D data.
MGConstructionPlane provides a local working 2D coordinate system and a local 3D coordinate system. MGConstructionPlane has the right hand coordinate system (U,V,N), where U=uspan*m_plane.uderiv(), V=uspan*m_plane.vderiv(), and N=m_nspan*m_plane.normal(). m_plane.uderiv(), m_plane.vderiv(), and m_plane.normal() are set to length one on the construction. MGConstructionPlane has the cplane coordinate system such that the coordinate (x, y, z) is the normal world coordinate (R+x*U, R+y*V, R+z*N). The cplane coordinate conversion utilities are provided as convert_to_world() or convert_from_world().