6 #ifndef _MGConstructionPlane_HH_
7 #define _MGConstructionPlane_HH_
14 #include "mgGL/Color.h"
138 void importGridAttrib(
const MGContext& ctx);
147 void setGridDataByBox(
165 bool valid()
const{
return m_plane.sdim()>0;};
168 double uspan()
const{
return m_uspan;};
169 double vspan()
const{
return m_vspan;};
170 int vnum()
const{
return m_vnum;};
171 int unum()
const{
return m_unum;};
174 void set_colors(
const MGColor colors[3]);
182 void set_colorsByViewID(
191 void set_line_color(
const MGColor& color);
194 void set_uaxis_color(
const MGColor& color);
197 void set_vaxis_color(
const MGColor& color);
201 void set_span(
double span);
202 void set_uspan(
double span);
203 void set_vspan(
double span);
204 void set_num(
int line_num);
205 void set_unum(
int unum);
206 void set_vnum(
int vnum);
207 void set_plane(
const MGPlane& plane);
220 MGColor m_lineColor,m_uaxisColor,m_vaxisColor;
226 MG_DLL_DECLR
friend void MGcplane_parameter(
void set_enable()
Definition: ConstructionPlane.h:200
bool valid() const
Definition: ConstructionPlane.h:165
MGPlane is infinite plane in 3D space.
Definition: Plane.h:38
virtual void make_display_list(MGCL::VIEWMODE vmode=MGCL::DONTCARE)
MGVector eval(const MGPosition &uv) const
Obtain the position data of the parameter (u,v).
Definition: ConstructionPlane.h:101
MGIfstream is a class to read the serialized data generated by MGOfstream.
Definition: Ifstream.h:30
void set_bind_to_grid_disable()
Definition: ConstructionPlane.h:134
std::ostream & operator<<(std::ostream &ostrm, const MGisect &is)
Debug Function.
Definition: isect.h:95
Vector of a general n space dimension.
Definition: Vector.h:26
MGContext defines the attributes of a document.
Definition: Context.h:33
Defines a Box of any space dimendion.
Definition: Box.h:34
MGColor defines the OpenGL color (R,G,B,A).
Definition: Color.h:26
MGPlane & plane()
Definition: ConstructionPlane.h:167
const MGPlane & plane() const
Definition: ConstructionPlane.h:166
MGStraight is a curve of any space dimension, represent a straight line.
Definition: Straight.h:49
double uspan() const
Definition: ConstructionPlane.h:168
Represent a positional data.
Definition: Position.h:28
VIEWMODE
Definition: MGCL.h:271
MGOfstream is a class to serialize all of the subclasses of MGGel.
Definition: Ofstream.h:31
void set_bind_to_grid_enable()
set bind_to_grid enable or disable.
Definition: ConstructionPlane.h:133
bool disabled() const
Definition: ConstructionPlane.h:129
bool enabled() const
Definition: ConstructionPlane.h:130
int unum() const
Definition: ConstructionPlane.h:171
OpenGL 4 用描画のためのクラス, in other words, display list.
Definition: VBO.h:76
MGConstructionPlane defines a construction plane ton input 3D data.
Definition: ConstructionPlane.h:33
int vnum() const
Definition: ConstructionPlane.h:170
double vspan() const
Definition: ConstructionPlane.h:169
bool is_bind_to_grid() const
Definition: ConstructionPlane.h:98
MGVector eval(double u, double v) const
Definition: ConstructionPlane.h:102
void set_disable()
Definition: ConstructionPlane.h:199