Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions CodeExterne/Poisson/include/Ply.h
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ class PlyValueVertex
PlyValueVertex( void ) : value( Real(0) ) { ; }
PlyValueVertex( Point3D< Real > p , Real v ) : point(p) , value(v) { ; }
PlyValueVertex operator + ( PlyValueVertex p ) const { return PlyValueVertex( point+p.point , value+p.value ); }
PlyValueVertex operator - ( PlyValueVertex p ) const { return PlyValueVertex( point-p.value , value-p.value ); }
PlyValueVertex operator - ( PlyValueVertex p ) const { return PlyValueVertex( point-p.point , value-p.value ); }
template< class _Real > PlyValueVertex operator * ( _Real s ) const { return PlyValueVertex( point*s , Real(value*s) ); }
template< class _Real > PlyValueVertex operator / ( _Real s ) const { return PlyValueVertex( point/s , Real(value/s) ); }
PlyValueVertex& operator += ( PlyValueVertex p ) { point += p.point , value += p.value ; return *this; }
Expand Down Expand Up @@ -340,7 +340,7 @@ class PlyOrientedVertex
PlyOrientedVertex( void ) { ; }
PlyOrientedVertex( Point3D< Real > p , Point3D< Real > n ) : point(p) , normal(n) { ; }
PlyOrientedVertex operator + ( PlyOrientedVertex p ) const { return PlyOrientedVertex( point+p.point , normal+p.normal ); }
PlyOrientedVertex operator - ( PlyOrientedVertex p ) const { return PlyOrientedVertex( point-p.value , normal-p.normal ); }
PlyOrientedVertex operator - ( PlyOrientedVertex p ) const { return PlyOrientedVertex( point-p.point , normal-p.normal ); }
template< class _Real > PlyOrientedVertex operator * ( _Real s ) const { return PlyOrientedVertex( point*s , normal*s ); }
template< class _Real > PlyOrientedVertex operator / ( _Real s ) const { return PlyOrientedVertex( point/s , normal/s ); }
PlyOrientedVertex& operator += ( PlyOrientedVertex p ) { point += p.point , normal += p.normal ; return *this; }
Expand Down Expand Up @@ -386,7 +386,7 @@ class PlyColorVertex
}

_PlyColorVertex operator + ( _PlyColorVertex p ) const { return _PlyColorVertex( point+p.point , color+p.color ); }
_PlyColorVertex operator - ( _PlyColorVertex p ) const { return _PlyColorVertex( point-p.value , color-p.color ); }
_PlyColorVertex operator - ( _PlyColorVertex p ) const { return _PlyColorVertex( point-p.point , color-p.color ); }
template< class _Real > _PlyColorVertex operator * ( _Real s ) const { return _PlyColorVertex( point*s , color*s ); }
template< class _Real > _PlyColorVertex operator / ( _Real s ) const { return _PlyColorVertex( point/s , color/s ); }
_PlyColorVertex& operator += ( _PlyColorVertex p ) { point += p.point , color += p.color ; return *this; }
Expand Down Expand Up @@ -455,7 +455,7 @@ class PlyColorAndValueVertex
}

_PlyColorAndValueVertex operator + ( _PlyColorAndValueVertex p ) const { return _PlyColorAndValueVertex( point+p.point , color+p.color , value+p.value ); }
_PlyColorAndValueVertex operator - ( _PlyColorAndValueVertex p ) const { return _PlyColorAndValueVertex( point-p.value , color-p.color , value+p.value ); }
_PlyColorAndValueVertex operator - ( _PlyColorAndValueVertex p ) const { return _PlyColorAndValueVertex( point-p.point , color-p.color , value+p.value ); }
template< class _Real > _PlyColorAndValueVertex operator * ( _Real s ) const { return _PlyColorAndValueVertex( point*s , color*s , value*s ); }
template< class _Real > _PlyColorAndValueVertex operator / ( _Real s ) const { return _PlyColorAndValueVertex( point/s , color/s , value/s ); }
_PlyColorAndValueVertex& operator += ( _PlyColorAndValueVertex p ) { point += p.point , color += p.color , value += p.value ; return *this; }
Expand Down
2 changes: 1 addition & 1 deletion CodeExterne/Poisson/include/SparseMatrix.inl
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ void SparseMatrix< T >::SetRowSize( int row , int count )
template<class T>
void SparseMatrix<T>::SetZero()
{
Resize(this->m_N, this->m_M);
Resize(this->rows, this->_maxEntriesPerRow);
}

template<class T>
Expand Down
4 changes: 2 additions & 2 deletions include/general/garb_coll_pub.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ template <class Type> class ElList : public PRC0
{
public :

ElList<Type>();
ElList();

Type car() const; // Fatal error when empty
ElList<Type> cdr() const; // Fatal error when empty
Expand All @@ -71,7 +71,7 @@ template <class Type> class ElList : public PRC0
INT card() const;
void clear() {while(!empty()) pop();}

ElList<Type>(RC_Object*);
ElList(RC_Object*);
};

template <class Type> class liste_phys : public RC_Object
Expand Down
68 changes: 34 additions & 34 deletions include/general/ptxd.h
Original file line number Diff line number Diff line change
Expand Up @@ -189,30 +189,30 @@ template <class Type> class Pt2d : public ElStdTypeScal<Type>

// Constructeur

Pt2d<Type>() : x (0), y (0) {}
Pt2d<Type>(Type X,Type Y) : x (X), y (Y) {}
Pt2d() : x (0), y (0) {}
Pt2d(Type X,Type Y) : x (X), y (Y) {}

Pt2d<Type>(const Pt2d<Type>& p) : x (p.x), y (p.y) {}
explicit Pt2d<Type>(const Pt2d<tCompl>& p) :
Pt2d(const Pt2d<Type>& p) : x (p.x), y (p.y) {}
explicit Pt2d(const Pt2d<tCompl>& p) :
x( TCompl<Type>::FromC( p.x)),
y( TCompl<Type>::FromC( p.y))
{
}

static Pt2d<Type> IP2ToThisT(const Pt2d<int> & aP){return Pt2d<Type>(Type(aP.x),Type(aP.y));}
static Pt2d<Type> RP2ToThisT(const Pt2d<double> & aP){return Pt2d<Type>(Type(aP.x),Type(aP.y));}
static Pt2d<Type> FP2ToThisT(const Pt2d<float> & aP){return Pt2d<Type>(Type(aP.x),Type(aP.y));}
static Pt2d<Type> IP2ToThisT(const Pt2d<int> & aP){return Pt2d(Type(aP.x),Type(aP.y));}
static Pt2d<Type> RP2ToThisT(const Pt2d<double> & aP){return Pt2d(Type(aP.x),Type(aP.y));}
static Pt2d<Type> FP2ToThisT(const Pt2d<float> & aP){return Pt2d(Type(aP.x),Type(aP.y));}

/*

Pt2d<Type>(const Pt2d<INT>& p) : x (p.x), y (p.y) {};
Pt2d<Type>(const Pt2d<REAL>& p): x (Pt2d<Type>::RtoT(p.x)), y (Pt2d<Type>::RtoT(p.y)) {};
Pt2d(const Pt2d<INT>& p) : x (p.x), y (p.y) {};
Pt2d(const Pt2d<REAL>& p): x (Pt2d<Type>::RtoT(p.x)), y (Pt2d<Type>::RtoT(p.y)) {};
*/


static Pt2d<Type> FromPolar(REAL rho,REAL teta)
{
return Pt2d<Type>(ElStdTypeScal<Type>::RtoT(cos(teta)*rho),ElStdTypeScal<Type>::RtoT(sin(teta)*rho));
return Pt2d(ElStdTypeScal<Type>::RtoT(cos(teta)*rho),ElStdTypeScal<Type>::RtoT(sin(teta)*rho));
}

static Pt2d<double> polar(const Pt2d<double> & p,REAL AngDef);
Expand All @@ -226,7 +226,7 @@ template <class Type> class Pt2d : public ElStdTypeScal<Type>
return TypeProvPtScalR (this->T2R(x),this->T2R(y));
}

Pt2d<Type> operator - () const { return Pt2d<Type>(-x,-y); }
Pt2d<Type> operator - () const { return Pt2d(-x,-y); }
Pt2d<Type> yx() const { return Pt2d(y,x);}
Pt2d<Type> conj() const { return Pt2d(x,-y);}
Pt2d<typename ElStdTypeScal<Type>::TypeScalReel> inv() const
Expand All @@ -241,19 +241,19 @@ template <class Type> class Pt2d : public ElStdTypeScal<Type>
// binaires, PtxPt => Pt

Pt2d<Type> operator + (const Pt2d<Type> & p2) const
{return Pt2d<Type>(x+p2.x,y+p2.y);}
{return Pt2d(x+p2.x,y+p2.y);}
Pt2d<Type> operator * (const Pt2d<Type> & p2) const
{return Pt2d<Type>(x*p2.x-y*p2.y,x*p2.y+y*p2.x);}
{return Pt2d(x*p2.x-y*p2.y,x*p2.y+y*p2.x);}

// TCompl
Pt2d<Type> operator / (const Pt2d<Type> & p2) const
{
TypeProvPtScalR aRes = this->ToPtProvR() * p2.inv().ToPtProvR();
return Pt2d<Type> ((Type)aRes.x,(Type)aRes.y);
return Pt2d((Type)aRes.x,(Type)aRes.y);
}

Pt2d<Type> operator - (const Pt2d<Type> & p2) const
{return Pt2d<Type>(x-p2.x,y-p2.y);}
{return Pt2d(x-p2.x,y-p2.y);}
Pt2d<Type> mcbyc(const Pt2d<Type> & p2) const
{return Pt2d(x*p2.x,y*p2.y);}
Pt2d<Type> dcbyc(const Pt2d<Type> & p2) const
Expand Down Expand Up @@ -291,18 +291,18 @@ template <class Type> class Pt2d : public ElStdTypeScal<Type>

// binaires, PtxScalaire => Pt

Pt2d<Type> operator * (INT lambda) const { return Pt2d<Type>(x*lambda,y*lambda);}
Pt2d<Type> operator * (INT lambda) const { return Pt2d(x*lambda,y*lambda);}


Pt2d<typename ElStdTypeScal<Type>::TypeScalReel> operator * (REAL lambda) const { return Pt2d<typename ElStdTypeScal<Type>::TypeScalReel>(x*lambda,y*lambda);}

Pt2d<Type> operator / (INT lambda) const { return Pt2d<Type>(x/lambda,y/lambda);}
Pt2d<Type> operator / (INT lambda) const { return Pt2d(x/lambda,y/lambda);}
Pt2d<typename ElStdTypeScal<Type>::TypeScalReel> operator / (REAL lambda) const { return Pt2d<typename ElStdTypeScal<Type>::TypeScalReel>(x/lambda,y/lambda);}


// operator * est deja surcharge
Pt2d<Type> mul (const Type & aL) const { return Pt2d<Type>(x*aL,y*aL);}
Pt2d<Type> div (const Type & aL) const { return Pt2d<Type>(x/aL,y/aL);}
Pt2d<Type> mul (const Type & aL) const { return Pt2d(x*aL,y*aL);}
Pt2d<Type> div (const Type & aL) const { return Pt2d(x/aL,y/aL);}


// binaires, PtxPt => scalaire
Expand Down Expand Up @@ -340,7 +340,7 @@ template <class Type> class Pt2d : public ElStdTypeScal<Type>
Output WhichMax();
Output WhichMin();

Pt2d<Type> AbsP() const {return Pt2d<Type>(ElAbs(x),ElAbs(y));}
Pt2d<Type> AbsP() const {return Pt2d(ElAbs(x),ElAbs(y));}

private :
void Verif_adr_xy();
Expand Down Expand Up @@ -388,8 +388,8 @@ template <> Pt2d<int>::Pt2d(const Pt2d<double>& p) : x (round_ni(p.x)), y (round
template <> Pt2d<Fonc_Num>::Pt2d(const Pt2d<double>& p) : x (p.x), y (p.y) {};
*/
/*
Pt2d<Type>(const Pt2d<INT>& p) : x (p.x), y (p.y) {};
Pt2d<Type>(const Pt2d<REAL>& p): x (Pt2d<Type>::RtoT(p.x)), y (Pt2d<Type>::RtoT(p.y)) {};
Pt2d(const Pt2d<INT>& p) : x (p.x), y (p.y) {};
Pt2d(const Pt2d<REAL>& p): x (Pt2d<Type>::RtoT(p.x)), y (Pt2d<Type>::RtoT(p.y)) {};
*/

//Rotate aPt(X,Y) with angle(rad) and center(X,Y)
Expand Down Expand Up @@ -846,23 +846,23 @@ template <class Type> class Pt3d : public ElStdTypeScal<Type>

Pt3d();

Pt3d<Type>(const Pt3d<Type>& ); // to please visual
explicit Pt3d<Type>(const Pt3d<tCompl>& p);
Pt3d(const Pt3d<Type>& ); // to please visual
explicit Pt3d(const Pt3d<tCompl>& p);

static Pt3d<Type> P3ToThisT(const Pt3d<int> & aP){return Pt3d<Type>(Type(aP.x),Type(aP.y),Type(aP.z));}
static Pt3d<Type> P3ToThisT(const Pt3d<double> & aP){return Pt3d<Type>(Type(aP.x),Type(aP.y),Type(aP.z));}
static Pt3d<Type> P3ToThisT(const Pt3d<float> & aP){return Pt3d<Type>(Type(aP.x),Type(aP.y),Type(aP.z));}
static Pt3d<Type> P3ToThisT(const Pt3d<int> & aP){return Pt3d(Type(aP.x),Type(aP.y),Type(aP.z));}
static Pt3d<Type> P3ToThisT(const Pt3d<double> & aP){return Pt3d(Type(aP.x),Type(aP.y),Type(aP.z));}
static Pt3d<Type> P3ToThisT(const Pt3d<float> & aP){return Pt3d(Type(aP.x),Type(aP.y),Type(aP.z));}


Pt3d<Type>(const Pt2d<Type>&,Type z); // to please visual
Pt3d(const Pt2d<Type>&,Type z); // to please visual

Pt3d<Type> mcbyc(const Pt3d<Type> & p2) const
{return Pt3d(x*p2.x,y*p2.y,z*p2.z);}
Pt3d<Type> dcbyc(const Pt3d<Type> & p2) const
{return Pt3d(x/p2.x,y/p2.y,z/p2.z);}

static Pt3d<Type> RandC() {return Pt3d<Type>(NRrandC(),NRrandC(),NRrandC());}
static Pt3d<Type> Rand3() {return Pt3d<Type>(NRrandom3(),NRrandom3(),NRrandom3());}
static Pt3d<Type> RandC() {return Pt3d(NRrandC(),NRrandC(),NRrandC());}
static Pt3d<Type> Rand3() {return Pt3d(NRrandom3(),NRrandom3(),NRrandom3());}

Pt3d(Type X,Type Y,Type Z);
Pt3d<Type> operator + (const Pt3d<Type> & p2) const;
Expand Down Expand Up @@ -897,12 +897,12 @@ template <class Type> class Pt3d : public ElStdTypeScal<Type>
std::vector<Type> ToTab() const;
static Pt3d<Type> FromTab(const std::vector<Type> &);

Pt3d<Type> AbsP() const {return Pt3d<Type>(ElAbs(x),ElAbs(y),ElAbs(z));}
Pt3d<Type> AbsP() const {return Pt3d(ElAbs(x),ElAbs(y),ElAbs(z));}
/*
friend Pt3d<Type> Sup (const Pt3d<Type> & p1,const Pt3d<Type> & p2)
{ return Pt3d<Type>(ElMax(p1.x,p2.x),ElMax(p1.y,p2.y),ElMax(p1.z,p2.z));}
{ return Pt3d(ElMax(p1.x,p2.x),ElMax(p1.y,p2.y),ElMax(p1.z,p2.z));}
friend Pt3d<Type> Inf (const Pt3d<Type> & p1,const Pt3d<Type> & p2)
{ return Pt3d<Type>(ElMin(p1.x,p2.x),ElMin(p1.y,p2.y),ElMin(p1.z,p2.z));}
{ return Pt3d(ElMin(p1.x,p2.x),ElMin(p1.y,p2.y),ElMin(p1.z,p2.z));}
*/
Output sigma();
Output VMax();
Expand Down Expand Up @@ -1008,7 +1008,7 @@ template <class Type> void corner_boxes
(
Pt3d<Type> p1,
Pt3d<Type> p2,
Pt3d<Type> (& t)[8]
Pt3d<Type>(& t)[8]
);
template <class Type> void pt_set_min_max(Pt3d<Type> & p0,Pt3d<Type> & p1);

Expand Down
2 changes: 1 addition & 1 deletion include/private/flux_pts_tpl.h
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ template <class Type> class Std_Pack_Of_Pts : public Std_Pack_Of_Pts_Gen
virtual void rgb_bgr(const Std_Pack_Of_Pts_Gen *);

private :
Std_Pack_Of_Pts<Type> (INT dim,INT sz_buf);
Std_Pack_Of_Pts (INT dim,INT sz_buf);

// _pts[d][i] == coordinate of the ith Pts in the dth dimension
Tab_Prov<Tab_Prov<Type> *> * _tprov_tprov;
Expand Down
8 changes: 4 additions & 4 deletions src/TpMMPD/BufferImage_code.h
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ BufferImage<T>& BufferImage<T>::operator += (BufferImage<T> const &img)
int NC = _size.first;
int NL = _size.second;
int NC2,NL2;
//img.Size(NC2,NL2);
//img.size(NC2,NL2);
NC2 = img.numCols();
NL2 = img.numLines();
int nbBands2 = img.numBands();
Expand Down Expand Up @@ -393,7 +393,7 @@ BufferImage<T>& BufferImage<T>::operator -= (BufferImage<T> const &img)
int NC = _size.first;
int NL = _size.second;
int NC2,NL2;
img.Size(NC2,NL2);
img.size(NC2,NL2);
int nbBands2 = img.numBands();
T* ptrLine = _data;
const T* ptrLine2 = img.getPtr();
Expand Down Expand Up @@ -434,7 +434,7 @@ BufferImage<T>& BufferImage<T>::operator *= (BufferImage<T> const &img)
int NC = _size.first;
int NL = _size.second;
int NC2,NL2;
img.Size(NC2,NL2);
img.size(NC2,NL2);
int nbBands2 = img.numBands();
T* ptrLine = _data;
const T* ptrLine2 = img.getPtr();
Expand Down Expand Up @@ -476,7 +476,7 @@ BufferImage<T>& BufferImage<T>::operator /= (BufferImage<T> const &img)
int NC = _size.first;
int NL = _size.second;
int NC2,NL2;
//img.Size(NC2,NL2);
//img.size(NC2,NL2);
NC2 = img.numCols();
NL2 = img.numLines();
int nbBands2 = img.numBands();
Expand Down
2 changes: 1 addition & 1 deletion src/op_buf/opb_general.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ template <class TyData,class TyBase> class Buf_Fonc_OB_TPL
: public Buf_Fonc_Op_buf
{
public :
Buf_Fonc_OB_TPL<TyData,TyBase>
Buf_Fonc_OB_TPL
(
Flux_Pts_Computed * flx,
Fonc_Num_Computed *,
Expand Down