Data structure for polyline in three dimensions.
More...
#include <JPolyline3D.hh>
Data structure for polyline in three dimensions.
A polyline is a series of connected line segments.
Definition at line 25 of file JPolyline3D.hh.
JGEOMETRY3D::JPolyline3D::JPolyline3D |
( |
| ) |
|
|
inline |
JGEOMETRY3D::JPolyline3D::JPolyline3D |
( |
int |
size | ) |
|
|
inline |
Constructor with given size.
Definition at line 33 of file JPolyline3D.hh.
34 if(size>0) resize(size) ;
const JPolyline3D& JGEOMETRY3D::JPolyline3D::getPolyline |
( |
| ) |
const |
|
inline |
Get polyline.
- Returns
- polyline
Definition at line 43 of file JPolyline3D.hh.
Data structure for polyline in three dimensions.
Get polyline.
- Returns
- polyline
Definition at line 52 of file JPolyline3D.hh.
Data structure for polyline in three dimensions.
Transform all vertices.
- Parameters
-
Definition at line 62 of file JPolyline3D.hh.
63 for( iterator it=begin(); it!=end() ; ++it ) it->transform(
T) ;
do set_variable OUTPUT_DIRECTORY $WORKDIR T
Rotate all vertices.
- Parameters
-
Definition at line 72 of file JPolyline3D.hh.
74 for( iterator it=begin(); it!=end() ; ++it ) it->rotate(R);
Rotate back all vertices.
- Parameters
-
Definition at line 83 of file JPolyline3D.hh.
84 for( iterator it=begin(); it!=end() ; ++it ) it->rotate_back(R) ;
Rotate all vertices around X-axis.
- Parameters
-
Definition at line 93 of file JPolyline3D.hh.
94 for( iterator it=begin(); it!=end() ; ++it ) it->rotate(R);
Rotate all vertices back around X-axis.
- Parameters
-
Definition at line 103 of file JPolyline3D.hh.
104 for( iterator it=begin(); it!=end() ; ++it ) it->rotate_back(R) ;
Rotate all vertices around Y-axis.
- Parameters
-
Definition at line 114 of file JPolyline3D.hh.
115 for( iterator it=begin(); it!=end() ; ++it ) it->rotate(R);
Rotate all vertices back around Y-axis.
- Parameters
-
Definition at line 125 of file JPolyline3D.hh.
126 for( iterator it=begin(); it!=end() ; ++it ) it->rotate_back(R) ;
Rotate all vertices around Z-axis.
- Parameters
-
Definition at line 135 of file JPolyline3D.hh.
136 for( iterator it=begin(); it!=end() ; ++it ) it->rotate(R);
Rotate all vertices back around Z-axis.
- Parameters
-
Definition at line 145 of file JPolyline3D.hh.
146 for( iterator it=begin(); it!=end() ; ++it ) it->rotate_back(R) ;
Transform all vertices of the polyline with a rotation and offset.
See the corresponding function in JPosition3D for more information
- Parameters
-
R | rotation matrix |
pos | position of origin (after rotation) |
Definition at line 157 of file JPolyline3D.hh.
158 for( iterator it=begin(); it!=end() ; ++it ) it->transform(R,pos) ;
Transform back all vertices of the polyline.
- Parameters
-
R | rotation matrix |
pos | polyline of origin (before rotation) |
Definition at line 167 of file JPolyline3D.hh.
168 for( iterator it=begin(); it!=end() ; ++it ) it->transform_back(R,pos) ;
std::istream& operator>> |
( |
std::istream & |
in, |
|
|
JPolyline3D & |
polyline |
|
) |
| |
|
friend |
Read polyline from input.
- Parameters
-
in | input stream |
polyline | polyline |
- Returns
- input stream
Definition at line 179 of file JPolyline3D.hh.
183 for( iterator it=polyline.begin(); it!=polyline.end() ; ++it ) {
then fatal The output file must have the wildcard in the e g root fi eval JPrintDetector a $DETECTOR O IDENTIFIER eval JPrintDetector a $DETECTOR O SUMMARY JAcoustics sh $DETECTOR_ID source JAcousticsToolkit sh CHECK_EXIT_CODE typeset A EMITTERS get_tripods $WORKDIR tripod txt EMITTERS get_transmitters $WORKDIR transmitter txt EMITTERS for EMITTER in
std::ostream& operator<< |
( |
std::ostream & |
out, |
|
|
const JPolyline3D & |
polyline |
|
) |
| |
|
friend |
Write polyline to output.
- Parameters
-
out | output stream |
polyline | polyline |
- Returns
- output stream
Definition at line 196 of file JPolyline3D.hh.
198 out << polyline.size() ;
199 for( const_iterator it=polyline.begin(); it!=polyline.end() ; ++it ) {
The documentation for this class was generated from the following file: