![]() |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
PCV (Portion de Ciel Visible / Ambiant Illumination) OpenGL context. More...
#include <PCVContext.h>

Public Member Functions | |
| PCVContext () | |
| Default constructor. More... | |
| virtual | ~PCVContext () |
| Destructor. More... | |
| bool | init (unsigned W, unsigned H, cloudViewer::GenericCloud *cloud, cloudViewer::GenericMesh *mesh=0, bool closedMesh=true) |
| Initialization. More... | |
| void | setViewDirection (const CCVector3 &V) |
| Set the viewing directions. More... | |
| int | GLAccumPixel (std::vector< int > &visibilityCount) |
Protected Member Functions | |
| void | glInit () |
| void | drawEntity () |
| void | associateToEntity (cloudViewer::GenericCloud *cloud, cloudViewer::GenericMesh *mesh=0) |
Protected Attributes | |
| cloudViewer::GenericCloud * | m_vertices |
| Displayed entity (cloud or mesh vertices) More... | |
| cloudViewer::GenericMesh * | m_mesh |
| Displayed entity (mesh - optional) More... | |
| PointCoordinateType | m_zoom |
| CCVector3 | m_viewCenter |
| QGLPixelBuffer * | m_pixBuffer |
| unsigned | m_width |
| Pixel buffer width (pixels) More... | |
| unsigned | m_height |
| Pixel buffer height (pixels) More... | |
| float | m_viewMat [OPENGL_MATRIX_SIZE] |
| Current model view matrix. More... | |
| float * | m_snapZ |
| Depth buffer. More... | |
| unsigned char * | m_snapC |
| Color buffer. More... | |
| bool | m_meshIsClosed |
| Whether displayed mesh is closed or not. More... | |
Static Protected Attributes | |
| static const unsigned | OPENGL_MATRIX_SIZE = 16 |
| Model view matrix size (OpenGL) More... | |
PCV (Portion de Ciel Visible / Ambiant Illumination) OpenGL context.
Similar to Cignoni's ShadeVis
Definition at line 22 of file PCVContext.h.
| PCVContext::PCVContext | ( | ) |
Default constructor.
Definition at line 49 of file PCVContext.cpp.
References m_viewMat, and OPENGL_MATRIX_SIZE.
|
virtual |
Destructor.
Definition at line 62 of file PCVContext.cpp.
References m_pixBuffer, m_snapC, and m_snapZ.
|
protected |
Definition at line 112 of file PCVContext.cpp.
References cloudViewer::GenericCloud::getBoundingBox(), m_height, m_mesh, m_vertices, m_viewCenter, m_width, m_zoom, min(), PC_ONE, and ZERO_TOLERANCE.
Referenced by init().
|
protected |
Definition at line 187 of file PCVContext.cpp.
Referenced by GLAccumPixel().
| int PCVContext::GLAccumPixel | ( | std::vector< int > & | visibilityCount | ) |
Increments the visibility counter for points viewed in the current pass (see setViewDirection)
| visibilityCount | per-vertex visibility count (same size as the number of vertices) |
Definition at line 242 of file PCVContext.cpp.
References count, drawEntity(), cloudViewer::utility::floor(), cloudViewer::GenericCloud::getNextPoint(), m_height, m_meshIsClosed, m_pixBuffer, m_snapC, m_snapZ, m_vertices, m_width, max(), OPENGL_MATRIX_SIZE, openGLSnapshot(), cloudViewer::GenericCloud::placeIteratorAtBeginning(), cloudViewer::GenericCloud::size(), Tuple3Tpl< Type >::x, Tuple3Tpl< Type >::y, Tuple3Tpl< Type >::z, and ZTWIST.
|
protected |
| bool PCVContext::init | ( | unsigned | W, |
| unsigned | H, | ||
| cloudViewer::GenericCloud * | cloud, | ||
| cloudViewer::GenericMesh * | mesh = 0, |
||
| bool | closedMesh = true |
||
| ) |
Initialization.
| W | OpenGL render context width (pixels) |
| H | OpenGL render context height (pixels) |
| cloud | associated cloud (or mesh vertices) |
| mesh | associated mesh (if any) |
| closedMesh | whether mesh is closed (faster) or not (need more memory) |
Definition at line 69 of file PCVContext.cpp.
References associateToEntity(), glInit(), m_height, m_meshIsClosed, m_pixBuffer, m_snapC, m_snapZ, m_width, and size.
| void PCVContext::setViewDirection | ( | const CCVector3 & | V | ) |
|
protected |
Pixel buffer height (pixels)
Definition at line 77 of file PCVContext.h.
Referenced by associateToEntity(), GLAccumPixel(), and init().
|
protected |
Displayed entity (mesh - optional)
Definition at line 64 of file PCVContext.h.
Referenced by associateToEntity().
|
protected |
Whether displayed mesh is closed or not.
Definition at line 93 of file PCVContext.h.
Referenced by GLAccumPixel(), and init().
|
protected |
Definition at line 72 of file PCVContext.h.
Referenced by GLAccumPixel(), glInit(), init(), setViewDirection(), and ~PCVContext().
|
protected |
Color buffer.
Definition at line 90 of file PCVContext.h.
Referenced by GLAccumPixel(), init(), and ~PCVContext().
|
protected |
Depth buffer.
Definition at line 88 of file PCVContext.h.
Referenced by GLAccumPixel(), init(), and ~PCVContext().
|
protected |
Displayed entity (cloud or mesh vertices)
Definition at line 61 of file PCVContext.h.
Referenced by associateToEntity(), and GLAccumPixel().
|
protected |
Definition at line 69 of file PCVContext.h.
Referenced by associateToEntity().
|
protected |
|
protected |
Pixel buffer width (pixels)
Definition at line 75 of file PCVContext.h.
Referenced by associateToEntity(), GLAccumPixel(), and init().
|
protected |
Definition at line 67 of file PCVContext.h.
Referenced by associateToEntity().
|
staticprotected |
Model view matrix size (OpenGL)
Definition at line 82 of file PCVContext.h.
Referenced by GLAccumPixel(), and PCVContext().