103 unsigned char pointSize = 1;
107 double opacity = 1.0;
125 this->pointSize = pointSize;
131 this->shadingMode = shadingMode;
137 this->shadingMode = shadingMode;
158 : lineWidth(
width), lineColor(
color), valid(false) {}
207 bool isRotate =
false;
208 bool applyEuler =
true;
209 bool isScale =
false;
210 bool isTranslate =
false;
211 bool isPositionChanged =
false;
213 double quaternion[4];
227 isPositionChanged =
true;
231 return isRotate || isScale || isTranslate || isPositionChanged;
235 bool updateTranslation =
true,
236 bool useEuler =
false) {
255 if (updateTranslation) {
265 setRotation(angle_deg, axis);
266 if (updateTranslation) {
272 bool updateTranslation =
true,
273 bool useEuler =
true) {
281 eulerZYX[0] = zAngle;
282 eulerZYX[1] = yAngle;
283 eulerZYX[2] = xAngle;
286 setRotation(zyxAngle[0], zyxAngle[1], zyxAngle[2]);
295 rotateParam.
angle = angle;
301 rotateParam.
angle = angle;
311 transVecStart = trans;
320 bool display3D =
false;
321 double textScale = 1.0;
322 double opacity = 1.0;
325 QFont font = QFont();
350 #define MACRO_Draw2D(context) (context.drawingFlags & CC_DRAW_2D)
351 #define MACRO_Draw3D(context) (context.drawingFlags & CC_DRAW_3D)
352 #define MACRO_EntityPicking(context) (context.drawingFlags & CC_ENTITY_PICKING)
353 #define MACRO_FastEntityPicking(context) \
354 (context.drawingFlags & CC_FAST_ENTITY_PICKING)
355 #define MACRO_SkipUnselected(context) \
356 (context.drawingFlags & CC_SKIP_UNSELECTED)
357 #define MACRO_SkipSelected(context) (context.drawingFlags & CC_SKIP_SELECTED)
358 #define MACRO_LightIsEnabled(context) (context.drawingFlags & CC_LIGHT_ENABLED)
359 #define MACRO_Foreground(context) (context.drawingFlags & CC_DRAW_FOREGROUND)
360 #define MACRO_LODActivated(context) (context.drawingFlags & CC_LOD_ACTIVATED)
361 #define MACRO_VirtualTransEnabled(context) \
362 (context.drawingFlags & CC_VIRTUAL_TRANS_ENABLED)
548 double opacity = 1.0;
561 QPoint p4 = QPoint(-1, -1);
567 bool handleEnabled =
false;
574 :
type(t), viewID(id), viewport(port) {
582 : entity(obj),
type(t), viewID(id), viewport(port) {
Vector3Tpl< double > CCVector3d
Double 3D Vector.
float PointCoordinateType
Type of the coordinates of a (N-D) point.
static Vector3Tpl fromArray(const int a[3])
Constructor from an int array.
Vector3Tpl< T > getTranslationAsVec3D() const
Returns a copy of the translation as a CCVector3.
T * data()
Returns a pointer to internal data.
void toEulerAngle(T &rz, T &ry, T &rx) const
Returns equivalent parameters: 3 rotation angles.
void getParameters(T &alpha_rad, Vector3Tpl< T > &axis3D, Vector3Tpl< T > &t3D) const
Float version of ccGLMatrixTpl.
Double version of ccGLMatrixTpl.
Hierarchical CLOUDVIEWER Object.
Mesh (triangle) material.
QSharedPointer< ccMaterial > Shared
Shared type.
A scalar field associated to display-related parameters.
@ ECV_POINTSSIZE_PROPERTY
@ CC_VIRTUAL_TRANS_ENABLED
float RadiansToDegrees(int radians)
Convert radians to degrees.
constexpr Rgbub defaultColor(MAX, MAX, MAX)
constexpr Rgbub defaultLabelMarkerColor(MAX, 0, MAX)
constexpr Rgbf defaultViewBkgColor(10/255.0f, 102/255.0f, 151/255.0f)
constexpr Rgb red(MAX, 0, 0)
constexpr Rgb lightGrey(static_cast< ColorCompType >(MAX *0.8), static_cast< ColorCompType >(MAX *0.8), static_cast< ColorCompType >(MAX *0.8))
constexpr Rgb green(0, MAX, 0)
constexpr Rgb yellow(MAX, MAX, 0)
constexpr Rgbub defaultBkgColor(135, 206, 235)
constexpr Rgbub defaultLabelBkgColor(MAX, MAX, MAX)
void setColor(const ecvColor::Rgb &col)
void setShadingMode(SHADING_MODE shadingMode)
PROPERTY_PARAM(ccHObject *obj, const ecvColor::Rgb &col)
void setPointSize(unsigned char size)
PROPERTY_PARAM(ccHObject *obj, double opacity)
PROPERTY_PARAM(ccHObject *obj, SHADING_MODE shadingMode)
void setOpacity(double op)
void setLineWith(PointCoordinateType with)
void setProperty(PROPERTY_MODE mode)
QString viewId
Display scalar field (prioritary on colors)
PROPERTY_PARAM(ccHObject *obj, unsigned char pointSize)
ecvColor::Rgbub pointsDefaultCol
Default point color.
bool drawBackgroundGradient
ecvColor::Rgbub bbDefaultCol
Default bounding-box color.
float renderZoom
Current zoom (screen to file rendering mode)
float devicePixelRatio
Device pixel ratio (general 1, 2 on HD displays)
float labelMarkerSize
Label marker size (radius)
ENTITY_TYPE hideShowEntityType
int drawingFlags
Drawing options (see below)
ecvColor::Rgbaf defaultMeshFrontDiff
Default color for mesh (front side)
bool decimateMeshOnMove
Whether to decimate big meshes when rotating the camera.
bool higherLODLevelsAvailable
Wheter higher levels are available or not.
unsigned labelOpacity
Label background opacity.
unsigned minLODPointCount
Minimum number of points for activating LOD display.
ecvColor::Rgbub labelDefaultBkgCol
Default label background color.
ecvColor::Rgb defaultPolylineColor
Default color for polyline.
ecvColor::Rgbub backgroundCol2
unsigned char defaultLineWidth
bool moreLODPointsAvailable
Wheter more points are available or not at the current level.
unsigned dispNumberPrecision
Numerical precision (for displaying text)
ecvColor::Rgbub labelDefaultMarkerCol
Default label marker color.
ecvColor::Rgbub backgroundCol
unsigned char currentLODLevel
Current level for LOD display.
float labelMarkerTextShift_pix
Shift for 3D label marker display (around the marker, in pixels)
ccMaterial::Shared defaultMat
Default material.
int glW
GL screen widthecvColor.
ecvColor::Rgb defaultMeshColor
Default color for mesh.
unsigned char currentLineWidth
unsigned minLODTriangleCount
Minimum number of triangles for activating LOD display.
ccScalarField * sfColorScaleToDisplay
Currently displayed color scale (the corresponding scalar field in fact)
ENTITY_TYPE removeEntityType
ecvColor::Rgbub textDefaultCol
Default text color.
MESH_RENDERING_MODE meshRenderingMode
TransformInfo transformInfo
unsigned stereoPassIndex
Stereo pass index.
bool useVBOs
Use VBOs for faster display.
ecvColor::Rgbaf defaultMeshBackDiff
Default color for mesh (back side)
bool decimateCloudOnMove
Whether to decimate big clouds when updating the 3D view.
unsigned char defaultPointSize
ecvColor::Rgbub pointsCurrentCol
Current point color.
ecvColor::Rgbf viewDefaultBkgCol
bool drawRoundedPoints
Whether to draw rounded points (instead of sqaures)
Display parameters of a 3D entity.
bool showColors
Display colors.
bool showNorms
Display normals.
bool showSF
Display scalar field (prioritary on colors)
ENTITY_TYPE hideType
Hide type.
QString hideId
Hide viewId.
friend bool operator==(const hideInfo &first, const hideInfo &second)
ENTITY_TYPE removeType
Remove type.
QString removeId
Remove viewId.
friend bool operator==(const removeInfo &first, const removeInfo &second)