12 #include <glm/glm.hpp>
13 #include "mg/Default.h"
14 #include "mg/Vector.h"
15 #include "mg/Matrix.h"
68 int start1=0,
int start2=0);
75 MGTransf(
double scalex,
double scaley);
88 MGTransf(
double scalex,
double scaley,
double scalez);
114 double operator() (
int i,
int j)
const{
return ref(i,j);};
117 double& operator() (
int i,
int j) ;
167 bool operator== (
const MGTransf&)
const;
168 bool operator!= (
const MGTransf&)
const;
177 void convert_to_glMatrix(
182 bool is_null()
const{
return m_affine.is_null();};
188 int SubordinateEntitySwitch=0
192 double ref(
int i,
int j)
const;
195 void resize(
int sdim);
198 double scale()
const{
return m_affine.scale();};
201 int sdim()
const{
return m_affine.sdim();};
222 MGTransf& set_rotate_2D(
double angle,
256 MGTransf& set_diff_scale(
double* scale);
259 MGTransf& set_glMatrix(
const double glMat[16]);
266 int dump_size()
const;
MGTransf represents a transformation of a space dimension.
Definition: Transf.h:35
MGIfstream is a class to read the serialized data generated by MGOfstream.
Definition: Ifstream.h:30
std::ostream & operator<<(std::ostream &ostrm, const MGisect &is)
Debug Function.
Definition: isect.h:95
Is an abstract class which represents a whole geometry and a topology.
Definition: Object.h:42
MG_DLL_DECLR MGVector & operator*=(MGVector &v, const MGMatrix &m)
Vector of a general n space dimension.
Definition: Vector.h:26
const MGVector & translation() const
Definition: Transf.h:263
int sdim() const
Return space dimension.
Definition: Transf.h:201
MG_DLL_DECLR MGVector operator*(const MGVector &v, const MGMatrix &m)
Represent a positional data.
Definition: Position.h:28
double scale() const
Obtain the scaling factor of this transf.
Definition: Transf.h:198
bool is_null() const
Test if this is null.
Definition: Transf.h:182
MGOfstream is a class to serialize all of the subclasses of MGGel.
Definition: Ofstream.h:31
MGOgesIfstream write out to *.iges file, transforming MGCL objects to IGES objects.
Definition: IgesOfstream.h:26
const MGMatrix & affine() const
Definition: Transf.h:174
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