ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
ccTraceTool Class Reference

#include <ccTraceTool.h>

Inheritance diagram for ccTraceTool:
Collaboration diagram for ccTraceTool:

Public Member Functions

 ccTraceTool ()
 
virtual ~ccTraceTool ()
 
void toolActivated () override
 
void toolDisactivated () override
 
void pointPicked (ccHObject *insertPoint, unsigned itemIdx, ccPointCloud *cloud, const CCVector3 &P) override
 
void onNewSelection (const ccHObject::Container &selectedEntities) override
 
void accept () override
 
void cancel () override
 
bool canUndo () override
 
void undo () override
 
- Public Member Functions inherited from ccTool
virtual ~ccTool ()
 
void initializeTool (ecvMainAppInterface *app)
 
virtual void pointPicked (ccHObject *insertPoint, unsigned itemIdx, ccHObject *pickedObject, const CCVector3 &P)
 

Protected Member Functions

void finishCurrentTrace ()
 
bool pickupTrace (ccHObject *obj)
 
- Protected Member Functions inherited from ccTool
 ccTool ()
 

Protected Attributes

int m_trace_id
 
bool m_preExisting = false
 
bool m_changed = false
 
bool m_parentPlaneDeleted = false
 
bool m_childPlaneDeleted = false
 
bool m_precompute_gradient
 
bool m_precompute_curvature
 
- Protected Attributes inherited from ccTool
ecvMainAppInterfacem_app
 
QWidget * m_window
 

Detailed Description

Definition at line 16 of file ccTraceTool.h.

Constructor & Destructor Documentation

◆ ccTraceTool()

ccTraceTool::ccTraceTool ( )

Definition at line 16 of file ccTraceTool.cpp.

◆ ~ccTraceTool()

ccTraceTool::~ccTraceTool ( )
virtual

Definition at line 18 of file ccTraceTool.cpp.

Member Function Documentation

◆ accept()

void ccTraceTool::accept ( )
overridevirtual

Reimplemented from ccTool.

Definition at line 122 of file ccTraceTool.cpp.

References finishCurrentTrace().

Referenced by toolDisactivated().

◆ cancel()

void ccTraceTool::cancel ( )
overridevirtual

◆ canUndo()

bool ccTraceTool::canUndo ( )
overridevirtual

Reimplemented from ccTool.

Definition at line 285 of file ccTraceTool.cpp.

Referenced by ccCompass::setTrace().

◆ finishCurrentTrace()

◆ onNewSelection()

void ccTraceTool::onNewSelection ( const ccHObject::Container selectedEntities)
overridevirtual

Reimplemented from ccTool.

Definition at line 144 of file ccTraceTool.cpp.

References finishCurrentTrace(), m_trace_id, and pickupTrace().

Referenced by toolActivated().

◆ pickupTrace()

◆ pointPicked()

◆ toolActivated()

void ccTraceTool::toolActivated ( )
overridevirtual

Reimplemented from ccTool.

Definition at line 21 of file ccTraceTool.cpp.

References ecvMainAppInterface::getSelectedEntities(), ccTool::m_app, and onNewSelection().

◆ toolDisactivated()

void ccTraceTool::toolDisactivated ( )
overridevirtual

Reimplemented from ccTool.

Definition at line 26 of file ccTraceTool.cpp.

References accept().

◆ undo()

void ccTraceTool::undo ( )
overridevirtual

Member Data Documentation

◆ m_changed

bool ccTraceTool::m_changed = false
protected

Definition at line 63 of file ccTraceTool.h.

Referenced by finishCurrentTrace(), and pointPicked().

◆ m_childPlaneDeleted

bool ccTraceTool::m_childPlaneDeleted = false
protected

Definition at line 67 of file ccTraceTool.h.

Referenced by finishCurrentTrace(), and pickupTrace().

◆ m_parentPlaneDeleted

bool ccTraceTool::m_parentPlaneDeleted = false
protected

Definition at line 66 of file ccTraceTool.h.

Referenced by finishCurrentTrace(), and pickupTrace().

◆ m_precompute_curvature

bool ccTraceTool::m_precompute_curvature
protected
Initial value:
=
true

Definition at line 71 of file ccTraceTool.h.

Referenced by pointPicked().

◆ m_precompute_gradient

bool ccTraceTool::m_precompute_gradient
protected
Initial value:
=
true

Definition at line 69 of file ccTraceTool.h.

Referenced by pointPicked().

◆ m_preExisting

bool ccTraceTool::m_preExisting = false
protected

Definition at line 61 of file ccTraceTool.h.

Referenced by cancel(), pickupTrace(), and pointPicked().

◆ m_trace_id

int ccTraceTool::m_trace_id
protected
Initial value:
=
-1

Definition at line 58 of file ccTraceTool.h.

Referenced by cancel(), finishCurrentTrace(), onNewSelection(), pickupTrace(), pointPicked(), and undo().


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