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

#include <CVShareable.h>

Inheritance diagram for CCShareable:
[legend]

Public Member Functions

 CCShareable ()
 Default constructor. More...
 
virtual void link ()
 Increase counter. More...
 
virtual void release ()
 Decrease counter and deletes object when 0. More...
 
virtual unsigned getLinkCount () const
 Returns the current link count. More...
 

Protected Member Functions

virtual ~CCShareable ()
 Destructor. More...
 

Protected Attributes

unsigned m_linkCount
 Links counter. More...
 

Constructor & Destructor Documentation

◆ CCShareable()

CCShareable::CCShareable ( )

Default constructor.

◆ ~CCShareable()

CCShareable::~CCShareable ( )
protectedvirtual

Destructor.

private to avoid deletion with 'delete' operator

References std::swap().

Member Function Documentation

◆ getLinkCount()

virtual unsigned CCShareable::getLinkCount ( ) const
inlinevirtual

Returns the current link count.

Returns
current link count

Referenced by define_CCShareable(), and ccPropertiesTreeDelegate::fillWithShareable().

◆ link()

◆ release()

void CCShareable::release ( )
virtual

Decrease counter and deletes object when 0.

Should be called when this object is 'detached'.

References m_linkCount.

Referenced by ccPointCloud::addEigenColors(), ccPointCloud::addEigenNorms(), ccPointCloud::addScalarField(), cloudViewer::PointCloudTpl< GenericIndexedCloudPersist >::addScalarField(), ccMesh::addTriangleNorm(), ccPointCloud::append(), masc::Classifier::classify(), ccArray< ecvColor::Rgb, 3, ColorCompType >::clone(), NormsIndexesTableType::clone(), ccMaterialSet::clone(), NormsTableType::clone(), ColorsTableType::clone(), RGBAColorsTableType::clone(), TextureCoordsContainer::clone(), qM3C2Process::Compute(), ccNormalVectors::ComputeCloudNormals(), ccComparisonDlg::computeDistances(), ccPointCloud::computeNormalsWithOctree(), ccMesh::computePerTriangleNormals(), cloudViewer::ScalarFieldTools::computeScalarFieldGradient(), DistanceMapGenerationTool::ConvertMapToCloud(), vtk2cc::ConvertToPointCloud(), pcl2cc::CopyScalarField(), copyScalarFields(), ccMesh::createNewMeshFromSelection(), define_CCShareable(), qPoissonRecon::doAction(), FromFbxMesh(), ccHistogramWindow::fromSF(), cloudViewer::AutoSegmentationTools::frontPropagationBasedSegmentation(), ccRasterizeTool::generateHillshade(), ObjFilter::loadFile(), PTXFilter::loadFile(), SimpleBinFilter::loadFile(), DRCFilter::loadFile(), VTKFilter::loadFile(), CSVMatrixFilter::loadFile(), PlyFilter::loadFile(), LoadScan(), masc::PointFeature::prepare(), prepareCloud(), PrepareLASField(), masc::Feature::PrepareSF(), ccMesh::removePerTriangleMtlIndexes(), ccMesh::removePerTriangleNormalIndexes(), ccMesh::removePerTriangleTexCoordIndexes(), ccPointCloud::reserveTheNormsTable(), ccPointCloud::reserveTheRGBTable(), ccPointCloud::resizeTheNormsTable(), ccPointCloud::resizeTheRGBTable(), ccMapWindow::setAssociatedScalarField(), ccMesh::setMaterialSet(), ccPointCloud::setNormsTable(), ccMesh::setTexCoordinatesTable(), ccMesh::setTriangleMtlIndexesTable(), ccMesh::setTriNormsTable(), ccMesh::transformTriNormals(), ccPointCloud::unallocateColors(), ccPointCloud::unallocateNorms(), and ccMesh::~ccMesh().

Member Data Documentation

◆ m_linkCount

unsigned CCShareable::m_linkCount
protected

Links counter.

Referenced by link(), and release().


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