qCC_db version 2.13.alpha (Qt) - 31 May 2022
CloudCompare 3D entities
Public Member Functions | List of all members
ccBBox Class Reference

Bounding box structure. More...

#include <ccBBox.h>

Inheritance diagram for ccBBox:
Inheritance graph
[legend]
Collaboration diagram for ccBBox:
Collaboration graph
[legend]

Public Member Functions

 ccBBox ()
 Default constructor.
 
 ccBBox (const CCVector3 &bbMinCorner, const CCVector3 &bbMaxCorner, bool valid)
 Constructor from two vectors (lower min. and upper max. corners)
 
 ccBBox (const CCCoreLib::BoundingBox &bbox)
 Constructor from two vectors (lower min. and upper max. corners)
 
const ccBBox operator* (const ccGLMatrix &mat)
 Applies transformation to the bounding box.
 
const ccBBox operator* (const ccGLMatrixd &mat)
 Applies transformation to the bounding box.
 
void draw (CC_DRAW_CONTEXT &context, const ccColor::Rgb &col) const
 Draws bounding box (OpenGL) More...
 

Detailed Description

Bounding box structure.

Supports several operators such as addition (to a matrix or a vector) and multiplication (by a matrix or a scalar).

Member Function Documentation

◆ draw()

void ccBBox::draw ( CC_DRAW_CONTEXT context,
const ccColor::Rgb col 
) const

Draws bounding box (OpenGL)

Parameters
contextOpenGL context
col(R,G,B) color

The documentation for this class was generated from the following files: