@@ -18,66 +18,66 @@ class dbIStream;
1818class dbTransform
1919{
2020 friend class _dbBlock ;
21- dbOrientType::Value _orient = dbOrientType::R0;
22- Point3D _offset ;
21+ dbOrientType::Value orient_ = dbOrientType::R0;
22+ Point3D offset_ ;
2323 bool mirror_z_ = false ;
2424
2525 public:
2626 // T = <R0, (0,0,0), false>
2727 dbTransform () = default ;
2828
2929 // T = <R0, (offset,0), false>
30- dbTransform (const Point offset) : _offset (offset, 0 ) {}
30+ dbTransform (const Point offset) : offset_ (offset, 0 ) {}
3131
3232 // T = <R0, offset, false>
33- dbTransform (const Point3D& offset) : _offset (offset) {}
33+ dbTransform (const Point3D& offset) : offset_ (offset) {}
3434
3535 // T = <orient, (0,0,0), false>
36- dbTransform (const dbOrientType orient) : _orient (orient) {}
36+ dbTransform (const dbOrientType orient) : orient_ (orient) {}
3737
3838 // T = <orient, (0,0,0), orient.mirror_z_>
3939 dbTransform (const dbOrientType3D& orient)
40- : _orient (orient.getOrientType2D()), mirror_z_(orient.isMirrorZ())
40+ : orient_ (orient.getOrientType2D()), mirror_z_(orient.isMirrorZ())
4141 {
4242 }
4343
4444 // T = <orient, (offset,0), false>
4545 dbTransform (const dbOrientType orient, const Point& offset)
46- : _orient (orient), _offset (offset, 0 )
46+ : orient_ (orient), offset_ (offset, 0 )
4747 {
4848 }
4949
5050 dbTransform (const dbOrientType3D orient, const Point3D& offset)
51- : _orient (orient.getOrientType2D()),
52- _offset (offset),
51+ : orient_ (orient.getOrientType2D()),
52+ offset_ (offset),
5353 mirror_z_(orient.isMirrorZ())
5454 {
5555 }
5656
5757 bool operator ==(const dbTransform& t) const
5858 {
59- return (_orient == t._orient ) && (_offset == t._offset )
59+ return (orient_ == t.orient_ ) && (offset_ == t.offset_ )
6060 && (mirror_z_ == t.mirror_z_ );
6161 }
6262
6363 bool operator !=(const dbTransform& t) const { return !operator ==(t); }
6464
65- void setOrient (const dbOrientType orient) { _orient = orient; }
65+ void setOrient (const dbOrientType orient) { orient_ = orient; }
6666
6767 void setOrient (const dbOrientType3D& orient)
6868 {
69- _orient = orient.getOrientType2D ();
69+ orient_ = orient.getOrientType2D ();
7070 mirror_z_ = orient.isMirrorZ ();
7171 }
7272
73- void setOffset (const Point offset) { _offset = Point3D (offset, 0 ); }
73+ void setOffset (const Point offset) { offset_ = Point3D (offset, 0 ); }
7474
75- void setOffset (const Point3D& offset) { _offset = offset; }
75+ void setOffset (const Point3D& offset) { offset_ = offset; }
7676
7777 void setTransform (const dbOrientType orient, const Point& offset)
7878 {
79- _orient = orient;
80- _offset = Point3D (offset, 0 );
79+ orient_ = orient;
80+ offset_ = Point3D (offset, 0 );
8181 }
8282
8383 // Apply transform to this point
@@ -107,8 +107,8 @@ class dbTransform
107107 // Compute inverse transform
108108 void invert ();
109109
110- dbOrientType getOrient () const { return _orient ; }
111- Point getOffset () const { return Point (_offset .x (), _offset .y ()); }
110+ dbOrientType getOrient () const { return orient_ ; }
111+ Point getOffset () const { return Point (offset_ .x (), offset_ .y ()); }
112112
113113 friend dbOStream& operator <<(dbOStream& stream, const dbTransform& t);
114114 friend dbIStream& operator >>(dbIStream& stream, dbTransform& t);
0 commit comments