9 #include "mg/Pvector.h"
10 #include "mg/Attrib.h"
11 #include "mgGL/Color.h"
12 #include "mgGL/Appearance.h"
13 #include "mgGL/SnapAttrib.h"
14 #include "mgGL/glViewAttrib.h"
15 #include "Tl2/TLInputParam.h"
55 const double gridSpan[2],
57 const double torelance[6],
77 void InitializeCPlane(
const MGBox& box);
109 void set_Bcolor(
const MGColor& Bcolor);
118 void set_Gcolor(
const MGColor& Gcolor);
127 void set_Hcolor(
const MGColor& Hcolor);
135 void set_gridColors(
const MGColor gridColor[4]);
136 void set_gridNum(
const int gridNum[2]);
137 void set_gridSpan(
const double gridSpan[2]);
202 void set_view_context(
220 double max_knot_ratio
227 m_tessellate_param=tessellate_param;};
249 void exec_tolerance()
const;
253 void exec_draw_attributes(
mgVBO& vbo)
const;
257 void exec_render_attributes(
mgVBO& vbo)
const;
260 std::ostream&
out(std::ostream& ostrm)
const;
262 std::string
whoami()
const{
return "Context";};
280 float m_pick_aperture;
287 double m_gridSpan[2];
292 double m_tolerance[6];
306 #endif //#ifndef _MGContext_HH_
MGColor & axisZcolor()
Z-axis color.
Definition: Context.h:174
const MGColor & Hcolor() const
Object highlight color.
Definition: Context.h:121
virtual MGAttrib & operator=(const MGAttrib &gel2)
Definition: Attrib.h:37
virtual bool operator<(const MGGel &gel2) const
MGAppearance * appearance()
Definition: Context.h:235
const MGColor & Gcolor() const
Object lines color.
Definition: Context.h:112
MGColor & Hcolor()
Object highlight color.
Definition: Context.h:124
MGColor & Gcolor()
Object lines color.
Definition: Context.h:115
MGIfstream is a class to read the serialized data generated by MGOfstream.
Definition: Ifstream.h:30
MGSnapAttrib & snap_attrib()
Definition: Context.h:93
void set_snap_attrib(const MGSnapAttrib &snap_attrib)
Definition: Context.h:94
MGColor & axisYcolor()
Y-axis(v-axis) color.
Definition: Context.h:164
virtual void ReadMembers(MGIfstream &buf)
Read all member data.
double tess_curve_tolerance() const
Definition: Context.h:231
void set_pick_aperture(float pick_aperture)
Definition: Context.h:190
int line_density() const
Definition: Context.h:97
const MGSnapAttrib & snap_attrib() const
set/get snap attrib data.
Definition: Context.h:92
MGContext defines the attributes of a document.
Definition: Context.h:33
Defines a Box of any space dimendion.
Definition: Box.h:34
const MGColor & axisZcolor() const
Z-axis color.
Definition: Context.h:171
MGglViewAttrib & theView()
Definition: Context.h:194
float pick_aperture() const
Definition: Context.h:188
MGColor defines the OpenGL color (R,G,B,A).
Definition: Color.h:26
const MGColor & Bcolor() const
set/get color data.
Definition: Context.h:103
virtual std::ostream & out(std::ostream &) const =0
Output virtual function.
MGColor & gridColor()
Grid color.
Definition: Context.h:144
const double * tolerance() const
Definition: Context.h:213
MGContext * clone() const
Definition: Context.h:89
MGGel is an abstract class which represents a group element.
Definition: Gel.h:53
mgTLInputParam & tessellate_param()
Definition: Context.h:225
std::string whoami() const
Definition: Context.h:262
void set_line_density(int line_density)
Definition: Context.h:98
long identify_type() const
Return This object's typeID.
Definition: Context.h:244
Defines Snap attributes.
Definition: SnapAttrib.h:26
const mgTLInputParam & tessellate_param() const
Tessellation parameter.
Definition: Context.h:224
void set_gridColor(const MGColor &color)
Grid color setter.
Definition: Context.h:147
const MGColor & axisYcolor() const
Y-axis(v-axis) color.
Definition: Context.h:161
Defines OpenGL display class for MGCL objects.
Definition: openglView.h:43
const MGColor * gridColors() const
Definition: Context.h:132
float smooth() const
Definition: Context.h:182
const MGColor & gridColor() const
Grid color.
Definition: Context.h:141
MGOfstream is a class to serialize all of the subclasses of MGGel.
Definition: Ofstream.h:31
virtual void WriteMembers(MGOfstream &buf) const
Write all member data.
const MGglViewAttrib & theView() const
Get the view attribute.
Definition: Context.h:193
double tess_surface_tolerance() const
Definition: Context.h:230
const MGColor & axisXcolor() const
X-axis(u-axis) color.
Definition: Context.h:151
void set_pick_aperture(double pick_aperture)
Definition: Context.h:189
void set_tessellate_param(const mgTLInputParam &tessellate_param)
Definition: Context.h:226
const int * gridNum() const
Definition: Context.h:133
const MGAppearance * appearance() const
Appearance data.
Definition: Context.h:234
MGglViewAttrib is a class to serialize MGOpenGLView.
Definition: glViewAttrib.h:27
const double * gridSpan() const
Definition: Context.h:134
A container class to hold MGGLAttrib objects.
Definition: Appearance.h:33
void set_axisYcolor(const MGColor &color)
Y-axis(v-axis) color setter.
Definition: Context.h:167
void set_axisXcolor(const MGColor &color)
X-axis(u-axis) color setter.
Definition: Context.h:157
void set_axisZcolor(const MGColor &color)
Z-axis color setter.
Definition: Context.h:177
MGColor & Bcolor()
Background color.
Definition: Context.h:106
MGColor & axisXcolor()
X-axis(u-axis) color.
Definition: Context.h:154
OpenGL 4 用描画のためのクラス, in other words, display list.
Definition: VBO.h:76
double * tolerance()
Tolerance data.
Definition: Context.h:212
double tess_maximum_edge_length() const
Definition: Context.h:229
MGAttrib is an abstract class that defines attribute elements of MGGel.
Definition: Attrib.h:28
void set_smooth(float smooth)
Definition: Context.h:184