8 #include "mg/Geometry.h"
9 #include "mg/Position.h"
10 #include "mg/isects.h"
61 double operator[] (
int i)
const{
return m_point.ref(i);}
62 double operator() (
int i)
const{
return m_point.ref(i);}
145 )
const{
return m_point;}
217 double ref(
int i)
const{
return m_point.ref(i);};
225 int SubordinateEntitySwitch=0
229 std::ostream&
out(std::ostream&)
const;
231 std::string
whoami()
const{
return "Point";};
MGisects intersection(const MGFace &obj2) const
Definition: Point.h:168
virtual MGGeometry & operator=(const MGGeometry &gel2)
Definition: Geometry.h:56
bool operator==(const MGGel &gel2) const
Comparison.
Definition: Point.h:79
MGCurve is an abstract class which represents a whole curve.
Definition: Curve.h:63
MGTransf represents a transformation of a space dimension.
Definition: Transf.h:35
virtual std::ostream & out(std::ostream &) const
Output virtual function.
const MGPosition & position() const
Definition: Point.h:209
virtual int out_to_IGES(MGIgesOfstream &igesfile, int SubordinateEntitySwitch=0) const
Definition: Gel.h:93
virtual int sdim() const =0
Return space dimension.
virtual bool operator<(const MGGel &gel2) const
virtual long identify_type() const =0
Return This object's typeID.
MGPoint represents one dimensional manifold, a point in a space.
Definition: Point.h:28
bool operator!=(const MGPoint &gel2) const
Definition: Point.h:81
virtual MGGeometry * copy_change_dimension(int sdim, int start1=0, int start2=0) const =0
virtual MGBox * compute_box() const =0
MGIfstream is a class to read the serialized data generated by MGOfstream.
Definition: Ifstream.h:30
virtual void drawWire(mgVBO &vbo, double span_length, int line_density=1) const =0
void negate()
Negate direction of this geometry.
Definition: Point.h:175
int manifold_dimension() const
Return manifold dimension, i.e. 0:point, 1:curve, 2:surface.
Definition: Point.h:172
void negate_transform(MGGeometry &boundary) const
Definition: Point.h:181
Is an abstract class which represents a whole geometry and a topology.
Definition: Object.h:42
std::string whoami() const
Definition: Point.h:231
virtual MGUnit_vector direction(const MGPosition ¶m) const
Compute direction unit vector of the geometry.
MGShell is a composition of MGFace's(trimmed surface).
Definition: Shell.h:32
Vector of a general n space dimension.
Definition: Vector.h:26
MGisects intersection(const MGSurface &obj2) const
Definition: Point.h:167
MGGeometry is an abstract class which represents a whole geometry.
Definition: Geometry.h:36
Defines a Box of any space dimendion.
Definition: Box.h:34
virtual void ReadMembers(MGIfstream &buf)
MGFace is a trimmed surface.
Definition: Face.h:51
MGVector evaluate(const MGPosition &t, const int *nderiv=0) const
Evaluate n'th derivative data. n=0 means positional data evaluation.
Definition: Point.h:141
MGisects intersection(const MGShell &obj2) const
Definition: Point.h:169
virtual void WriteMembers(MGOfstream &buf) const
MGGel is an abstract class which represents a group element.
Definition: Gel.h:53
MGPosition center_param() const
Obtain ceter parameter value of the geometry.
Definition: Point.h:99
Interval of 1 dimension, i.e. MGInterval is a real line.
Definition: Interval.h:22
Represent a positional data.
Definition: Position.h:28
MGSurface is an abstract class of 3D surface.
Definition: Surface.h:54
virtual bool in_range(const MGPosition &t) const
Definition: Geometry.h:114
virtual MGObject & operator-=(const MGVector &v)=0
virtual MGGeometry & change_dimension(int sdim, int start1=0, int start2=0)=0
Changing this object's space dimension.
MGisects intersection(const MGCurve &obj2) const
Definition: Point.h:165
double & operator()(int i)
Access to i-th element.
Definition: Point.h:65
MGFSurface is an abstract class to provide the comman interfaces to MGFace and MGSurface.
Definition: FSurface.h:33
MGOfstream is a class to serialize all of the subclasses of MGGel.
Definition: Ofstream.h:31
MGisects intersection(const MGFSurface &obj2) const
Definition: Point.h:166
const MGPoint * point() const
Definition: Point.h:207
MGPosition_list provides a list of Positions.
Definition: Position_list.h:27
MGPoint * point()
Return point pointer if this MGGel is an MGPoint, else return null.
Definition: Point.h:206
bool operator!=(const MGGel &gel2) const
Definition: Point.h:80
virtual MGBox parameter_range() const =0
MGOgesIfstream write out to *.iges file, transforming MGCL objects to IGES objects.
Definition: IgesOfstream.h:26
virtual MGGeometry * clone() const =0
MGPosition center() const
Obtain ceter coordinate of the geometry.
Definition: Point.h:96
MGisects intersection(const MGObject &obj2) const
Definition: Point.h:164
MGisects defines a vector of MGisect.
Definition: isects.h:44
virtual MGObject & operator+=(const MGVector &v)=0
Object transformation.
virtual MGObject & operator*=(double scale)=0
virtual bool operator==(const MGGel &gel2) const
Comparison.
Definition: Gel.h:80
virtual void draw3DVertex(mgVBO &vbo) const
OpenGL 4 用描画のためのクラス, in other words, display list.
Definition: VBO.h:76
MGPosition & position()
Definition: Point.h:210
double ref(int i) const
Return i-th element of the point.
Definition: Point.h:217
bool operator<(const MGGel &gel2) const
Definition: Point.h:82
Define a unit vector, is a MGVector.
Definition: Unit_vector.h:17
MGMatrix is a matix of m by m, where m is the space dimension.
Definition: Matrix.h:30