ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
ecvClipBox.cpp File Reference
#include "ecvClipBox.h"
#include "ecvCone.h"
#include "ecvCylinder.h"
#include "ecvDisplayTools.h"
#include "ecvHObjectCaster.h"
#include "ecvSphere.h"
#include "ecvTorus.h"
#include <cassert>
Include dependency graph for ecvClipBox.cpp:

Go to the source code of this file.

Functions

static QSharedPointer< ccCylinderc_arrowShaft (nullptr)
 
static QSharedPointer< ccConec_arrowHead (nullptr)
 
static QSharedPointer< ccSpherec_centralSphere (nullptr)
 
static QSharedPointer< ccTorusc_torus (nullptr)
 
void DrawUnitArrow (int ID, const CCVector3 &start, const CCVector3 &direction, PointCoordinateType scale, const ecvColor::Rgb &col, CC_DRAW_CONTEXT &context)
 
static void DrawUnitTorus (int ID, const CCVector3 &center, const CCVector3 &direction, PointCoordinateType scale, const ecvColor::Rgb &col, CC_DRAW_CONTEXT &context)
 
static void DrawUnitCross (int ID, const CCVector3 &center, PointCoordinateType scale, const ecvColor::Rgb &col, CC_DRAW_CONTEXT &context)
 
static CCVector3d PointToVector (int x, int y, int screenWidth, int screenHeight)
 

Variables

const ColorCompType c_lightComp = ecvColor::MAX / 2
 
const ecvColor::Rgb c_lightRed (ecvColor::MAX, c_lightComp, c_lightComp)
 
const ecvColor::Rgb c_lightGreen (c_lightComp, ecvColor::MAX, c_lightComp)
 
const ecvColor::Rgb c_lightBlue (c_lightComp, c_lightComp, ecvColor::MAX)
 

Function Documentation

◆ c_arrowHead()

static QSharedPointer<ccCone> c_arrowHead ( nullptr  )
static

Referenced by DrawUnitArrow().

◆ c_arrowShaft()

static QSharedPointer<ccCylinder> c_arrowShaft ( nullptr  )
static

Referenced by DrawUnitArrow().

◆ c_centralSphere()

static QSharedPointer<ccSphere> c_centralSphere ( nullptr  )
static

◆ c_torus()

static QSharedPointer<ccTorus> c_torus ( nullptr  )
static

Referenced by DrawUnitTorus().

◆ DrawUnitArrow()

◆ DrawUnitCross()

static void DrawUnitCross ( int  ID,
const CCVector3 center,
PointCoordinateType  scale,
const ecvColor::Rgb col,
CC_DRAW_CONTEXT context 
)
static

Definition at line 195 of file ecvClipBox.cpp.

References context, and DrawUnitArrow().

Referenced by ccClipBox::drawMeOnly().

◆ DrawUnitTorus()

static void DrawUnitTorus ( int  ID,
const CCVector3 center,
const CCVector3 direction,
PointCoordinateType  scale,
const ecvColor::Rgb col,
CC_DRAW_CONTEXT context 
)
static

◆ PointToVector()

static CCVector3d PointToVector ( int  x,
int  y,
int  screenWidth,
int  screenHeight 
)
static

Variable Documentation

◆ c_lightBlue

◆ c_lightComp

const ColorCompType c_lightComp = ecvColor::MAX / 2

Definition at line 712 of file ecvClipBox.cpp.

◆ c_lightGreen

◆ c_lightRed