#include <StructureGL.h>
Classes | |
class | Viewpoint |
Public Types | |
typedef CylinderPatch::CylinderPatches | CylinderPatches |
typedef PlanePatch::PlanePatches | PlanePatches |
typedef pcl::PointCloud< PointT > | PointCloud |
typedef boost::shared_ptr < PointCloud > | PointCloudPtr |
typedef pcl::PointXYZRGB | PointT |
typedef GLuint | TexID |
typedef std::vector< TexID > | TexIDs |
typedef Eigen::Vector3f | Vec3 |
Public Member Functions | |
void | initializeGL () |
void | initLight () |
void | keyPressEvent (QKeyEvent *) |
void | keyReleaseEvent (QKeyEvent *) |
void | mouseMoveEvent (QMouseEvent *) |
void | mousePressEvent (QMouseEvent *) |
void | mouseReleaseEvent (QMouseEvent *) |
void | paintBMPlanes () |
void | paintCoordinateSystemGL () |
void | paintCylinders () |
void | paintGL () |
void | paintHeightMapPlanes () |
void | paintPlanes () |
void | paintPointsGL () |
void | paintUnsegPointsGL () |
void | resizeGL (int width, int height) |
void | setCylinderPatches (const CylinderPatches &cp) |
void | setPerspective (double fovy, double aspekt, double zNear, double zFar) |
void | setPlanePatches (const PlanePatches &pp) |
void | setPointCloud (PointCloudPtr pc) |
void | setUnsegmentedPointCloud (PointCloudPtr pc) |
StructureGL (QWidget *parent=0, const QGLWidget *shareWidget=0, Qt::WindowFlags f=0) | |
StructureGL (QGLContext *context, QWidget *parent=0, const QGLWidget *shareWidget=0, Qt::WindowFlags f=0) | |
StructureGL (const QGLFormat &format, QWidget *parent=0, const QGLWidget *shareWidget=0, Qt::WindowFlags f=0) | |
void | wheelEvent (QWheelEvent *) |
Static Public Member Functions | |
static void | flipToViewport (Vec3 &vec, const Vec3 &viewport) |
If vec does not point to the viewport, it is flipped. | |
Private Types | |
typedef std::vector< Vec3, Eigen::aligned_allocator< Vec3 > > | Points |
Private Slots | |
void | moveTimeout () |
Private Member Functions | |
void | generateNormalisationCubeMap () |
void | getColorByIndex (float *rgb, unsigned int index, unsigned int total) |
void | initialize () |
void | removedMarkedTextures () |
void | resetAllPlaneTextures () |
void | resetTextures (TexIDs &textureIDs) |
Static Private Member Functions | |
static void | packTo01 (Vec3 &vec) |
Private Attributes | |
bool | mBumpMaps |
CylinderPatches | mCylinderPatches |
QMutex | mCylinderPatchesMutex |
bool | mDown |
bool | mForward |
TexIDs | mHeightMapIDs |
bool | mHeightMaps |
std::clock_t | mLastTick |
bool | mLeft |
bool | mLight |
GLfloat | mLightPos0 [4] |
double | mModelM [16] |
bool | mMouseView |
QTimer | mMoveTimer |
TexID | mNormalisationCubeMap |
TexIDs | mNormalMapIDs |
float | mPitchStart |
TexIDs | mPlaneAlphaIDs |
PlanePatches | mPlanePatches |
QMutex | mPlanePatchesMutex |
TexIDs | mPlaneTextureIDs |
QMutex | mPlaneTextureMutex |
PointCloudPtr | mPointCloud |
QMutex | mPointCloudMutex |
double | mProjM [16] |
bool | mReverse |
bool | mRight |
float | mRotationSpeed |
bool | mShowCylinders |
bool | mShowPlanes |
bool | mShowPoints |
bool | mShowUnsegmentedPoints |
QPoint | mStartPos |
TexIDs | mTexIDsToRemove |
float | mTranslationSpeed |
bool | mTurnLeft |
bool | mTurnRight |
PointCloudPtr | mUnsegPointCloud |
bool | mUp |
int | mViewP [4] |
Viewpoint | mViewpoint |
float | mYawStart |
Definition at line 56 of file StructureGL.h.
Definition at line 61 of file StructureGL.h.
Definition at line 60 of file StructureGL.h.
typedef pcl::PointCloud<PointT> StructureGL::PointCloud |
Definition at line 63 of file StructureGL.h.
typedef boost::shared_ptr<PointCloud> StructureGL::PointCloudPtr |
Definition at line 64 of file StructureGL.h.
typedef std::vector<Vec3, Eigen::aligned_allocator<Vec3> > StructureGL::Points [private] |
Definition at line 141 of file StructureGL.h.
typedef pcl::PointXYZRGB StructureGL::PointT |
Definition at line 62 of file StructureGL.h.
typedef GLuint StructureGL::TexID |
Definition at line 65 of file StructureGL.h.
typedef std::vector<TexID> StructureGL::TexIDs |
Definition at line 66 of file StructureGL.h.
typedef Eigen::Vector3f StructureGL::Vec3 |
Definition at line 59 of file StructureGL.h.
StructureGL::StructureGL | ( | QWidget * | parent = 0 , |
const QGLWidget * | shareWidget = 0 , |
||
Qt::WindowFlags | f = 0 |
||
) |
Definition at line 49 of file StructureGL.cpp.
StructureGL::StructureGL | ( | QGLContext * | context, |
QWidget * | parent = 0 , |
||
const QGLWidget * | shareWidget = 0 , |
||
Qt::WindowFlags | f = 0 |
||
) |
Definition at line 57 of file StructureGL.cpp.
StructureGL::StructureGL | ( | const QGLFormat & | format, |
QWidget * | parent = 0 , |
||
const QGLWidget * | shareWidget = 0 , |
||
Qt::WindowFlags | f = 0 |
||
) |
Definition at line 65 of file StructureGL.cpp.
void StructureGL::flipToViewport | ( | Vec3 & | vec, |
const Vec3 & | viewport | ||
) | [static] |
If vec does not point to the viewport, it is flipped.
vec | Input and output vector to be flipped. |
viewport | Input viewport position. |
Definition at line 41 of file StructureGL.cpp.
void StructureGL::generateNormalisationCubeMap | ( | ) | [private] |
Definition at line 847 of file StructureGL.cpp.
void StructureGL::getColorByIndex | ( | float * | rgb, |
unsigned int | index, | ||
unsigned int | total | ||
) | [private] |
Definition at line 811 of file StructureGL.cpp.
void StructureGL::initialize | ( | ) | [private] |
Definition at line 79 of file StructureGL.cpp.
void StructureGL::initializeGL | ( | ) |
Definition at line 98 of file StructureGL.cpp.
void StructureGL::initLight | ( | ) |
Definition at line 128 of file StructureGL.cpp.
void StructureGL::keyPressEvent | ( | QKeyEvent * | event | ) |
Definition at line 633 of file StructureGL.cpp.
void StructureGL::keyReleaseEvent | ( | QKeyEvent * | event | ) |
Definition at line 716 of file StructureGL.cpp.
void StructureGL::mouseMoveEvent | ( | QMouseEvent * | event | ) |
Definition at line 785 of file StructureGL.cpp.
void StructureGL::mousePressEvent | ( | QMouseEvent * | event | ) |
Definition at line 762 of file StructureGL.cpp.
void StructureGL::mouseReleaseEvent | ( | QMouseEvent * | event | ) |
Definition at line 775 of file StructureGL.cpp.
void StructureGL::moveTimeout | ( | ) | [private, slot] |
Definition at line 595 of file StructureGL.cpp.
static void StructureGL::packTo01 | ( | Vec3 & | vec | ) | [inline, static, private] |
Definition at line 201 of file StructureGL.h.
void StructureGL::paintBMPlanes | ( | ) |
Definition at line 236 of file StructureGL.cpp.
void StructureGL::paintCoordinateSystemGL | ( | ) |
Definition at line 168 of file StructureGL.cpp.
void StructureGL::paintCylinders | ( | ) |
Definition at line 421 of file StructureGL.cpp.
void StructureGL::paintGL | ( | ) |
Definition at line 552 of file StructureGL.cpp.
void StructureGL::paintHeightMapPlanes | ( | ) |
Definition at line 347 of file StructureGL.cpp.
void StructureGL::paintPlanes | ( | ) |
Definition at line 184 of file StructureGL.cpp.
void StructureGL::paintPointsGL | ( | ) |
Definition at line 516 of file StructureGL.cpp.
void StructureGL::paintUnsegPointsGL | ( | ) |
Definition at line 534 of file StructureGL.cpp.
void StructureGL::removedMarkedTextures | ( | ) | [private] |
Definition at line 1018 of file StructureGL.cpp.
void StructureGL::resetAllPlaneTextures | ( | ) | [private] |
Definition at line 997 of file StructureGL.cpp.
void StructureGL::resetTextures | ( | TexIDs & | textureIDs | ) | [private] |
Definition at line 1006 of file StructureGL.cpp.
void StructureGL::resizeGL | ( | int | width, |
int | height | ||
) |
Definition at line 153 of file StructureGL.cpp.
void StructureGL::setCylinderPatches | ( | const CylinderPatches & | cp | ) | [inline] |
Definition at line 128 of file StructureGL.h.
void StructureGL::setPerspective | ( | double | fovy, |
double | aspekt, | ||
double | zNear, | ||
double | zFar | ||
) |
Definition at line 627 of file StructureGL.cpp.
void StructureGL::setPlanePatches | ( | const PlanePatches & | pp | ) | [inline] |
Definition at line 115 of file StructureGL.h.
void StructureGL::setPointCloud | ( | PointCloudPtr | pc | ) | [inline] |
Definition at line 101 of file StructureGL.h.
void StructureGL::setUnsegmentedPointCloud | ( | PointCloudPtr | pc | ) | [inline] |
Definition at line 108 of file StructureGL.h.
void StructureGL::wheelEvent | ( | QWheelEvent * | event | ) |
Definition at line 803 of file StructureGL.cpp.
bool StructureGL::mBumpMaps [private] |
Definition at line 253 of file StructureGL.h.
CylinderPatches StructureGL::mCylinderPatches [private] |
Definition at line 238 of file StructureGL.h.
QMutex StructureGL::mCylinderPatchesMutex [private] |
Definition at line 239 of file StructureGL.h.
bool StructureGL::mDown [private] |
Definition at line 226 of file StructureGL.h.
bool StructureGL::mForward [private] |
Definition at line 226 of file StructureGL.h.
TexIDs StructureGL::mHeightMapIDs [private] |
Definition at line 244 of file StructureGL.h.
bool StructureGL::mHeightMaps [private] |
Definition at line 254 of file StructureGL.h.
std::clock_t StructureGL::mLastTick [private] |
Definition at line 223 of file StructureGL.h.
bool StructureGL::mLeft [private] |
Definition at line 226 of file StructureGL.h.
bool StructureGL::mLight [private] |
Definition at line 252 of file StructureGL.h.
GLfloat StructureGL::mLightPos0[4] [private] |
Definition at line 215 of file StructureGL.h.
double StructureGL::mModelM[16] [private] |
Definition at line 213 of file StructureGL.h.
bool StructureGL::mMouseView [private] |
Definition at line 217 of file StructureGL.h.
QTimer StructureGL::mMoveTimer [private] |
Definition at line 224 of file StructureGL.h.
TexID StructureGL::mNormalisationCubeMap [private] |
Definition at line 247 of file StructureGL.h.
TexIDs StructureGL::mNormalMapIDs [private] |
Definition at line 245 of file StructureGL.h.
float StructureGL::mPitchStart [private] |
Definition at line 219 of file StructureGL.h.
TexIDs StructureGL::mPlaneAlphaIDs [private] |
Definition at line 243 of file StructureGL.h.
PlanePatches StructureGL::mPlanePatches [private] |
Definition at line 235 of file StructureGL.h.
QMutex StructureGL::mPlanePatchesMutex [private] |
Definition at line 236 of file StructureGL.h.
TexIDs StructureGL::mPlaneTextureIDs [private] |
Definition at line 242 of file StructureGL.h.
QMutex StructureGL::mPlaneTextureMutex [private] |
Definition at line 241 of file StructureGL.h.
PointCloudPtr StructureGL::mPointCloud [private] |
Definition at line 231 of file StructureGL.h.
QMutex StructureGL::mPointCloudMutex [private] |
Definition at line 233 of file StructureGL.h.
double StructureGL::mProjM[16] [private] |
Definition at line 213 of file StructureGL.h.
bool StructureGL::mReverse [private] |
Definition at line 226 of file StructureGL.h.
bool StructureGL::mRight [private] |
Definition at line 226 of file StructureGL.h.
float StructureGL::mRotationSpeed [private] |
Definition at line 218 of file StructureGL.h.
bool StructureGL::mShowCylinders [private] |
Definition at line 251 of file StructureGL.h.
bool StructureGL::mShowPlanes [private] |
Definition at line 250 of file StructureGL.h.
bool StructureGL::mShowPoints [private] |
Definition at line 249 of file StructureGL.h.
bool StructureGL::mShowUnsegmentedPoints [private] |
Definition at line 255 of file StructureGL.h.
QPoint StructureGL::mStartPos [private] |
Definition at line 220 of file StructureGL.h.
TexIDs StructureGL::mTexIDsToRemove [private] |
Definition at line 246 of file StructureGL.h.
float StructureGL::mTranslationSpeed [private] |
Definition at line 218 of file StructureGL.h.
bool StructureGL::mTurnLeft [private] |
Definition at line 226 of file StructureGL.h.
bool StructureGL::mTurnRight [private] |
Definition at line 226 of file StructureGL.h.
PointCloudPtr StructureGL::mUnsegPointCloud [private] |
Definition at line 232 of file StructureGL.h.
bool StructureGL::mUp [private] |
Definition at line 226 of file StructureGL.h.
int StructureGL::mViewP[4] [private] |
Definition at line 214 of file StructureGL.h.
Viewpoint StructureGL::mViewpoint [private] |
Definition at line 221 of file StructureGL.h.
float StructureGL::mYawStart [private] |
Definition at line 219 of file StructureGL.h.