LibreOffice Module vcl (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
Octree Class Reference

#include <Octree.hxx>

Collaboration diagram for Octree:
[legend]

Public Member Functions

 Octree (const BitmapReadAccess &rReadAcc, sal_uLong nColors)
 
 ~Octree ()
 
const BitmapPaletteGetPalette ()
 
sal_uInt16 GetBestPaletteIndex (const BitmapColor &rColor)
 

Private Member Functions

void CreatePalette (OctreeNode *pNode)
 
void GetPalIndex (const OctreeNode *pNode, BitmapColor const &color)
 
SAL_DLLPRIVATE void add (std::unique_ptr< OctreeNode > &rpNode, BitmapColor const &color)
 
SAL_DLLPRIVATE void reduce ()
 

Private Attributes

BitmapPalette maPalette
 
sal_uLong mnLeafCount
 
sal_uLong mnLevel
 
std::unique_ptr< OctreeNodepTree
 
std::vector< OctreeNode * > mpReduce
 
sal_uInt16 mnPalIndex
 

Detailed Description

Definition at line 41 of file Octree.hxx.

Constructor & Destructor Documentation

◆ Octree()

Octree::Octree ( const BitmapReadAccess rReadAcc,
sal_uLong  nColors 
)

◆ ~Octree()

Octree::~Octree ( )

Definition at line 80 of file Octree.cxx.

Member Function Documentation

◆ add()

void Octree::add ( std::unique_ptr< OctreeNode > &  rpNode,
BitmapColor const &  color 
)
private

Definition at line 82 of file Octree.cxx.

References add(), mnLeafCount, mnLevel, mpReduce, and nIndex.

Referenced by add(), and Octree().

◆ CreatePalette()

void Octree::CreatePalette ( OctreeNode pNode)
private

◆ GetBestPaletteIndex()

sal_uInt16 Octree::GetBestPaletteIndex ( const BitmapColor rColor)

Definition at line 205 of file Octree.cxx.

References GetPalIndex(), mnLevel, mnPalIndex, and pTree.

Referenced by BitmapSimpleColorQuantizationFilter::execute().

◆ GetPalette()

const BitmapPalette & Octree::GetPalette ( )

◆ GetPalIndex()

void Octree::GetPalIndex ( const OctreeNode pNode,
BitmapColor const &  color 
)
private

◆ reduce()

void Octree::reduce ( )
private

Member Data Documentation

◆ maPalette

BitmapPalette Octree::maPalette
private

Definition at line 50 of file Octree.hxx.

Referenced by CreatePalette(), and GetPalette().

◆ mnLeafCount

sal_uLong Octree::mnLeafCount
private

Definition at line 51 of file Octree.hxx.

Referenced by add(), GetPalette(), Octree(), and reduce().

◆ mnLevel

sal_uLong Octree::mnLevel
private

Definition at line 52 of file Octree.hxx.

Referenced by add(), GetBestPaletteIndex(), GetPalIndex(), and Octree().

◆ mnPalIndex

sal_uInt16 Octree::mnPalIndex
private

Definition at line 55 of file Octree.hxx.

Referenced by CreatePalette(), GetBestPaletteIndex(), GetPalette(), and GetPalIndex().

◆ mpReduce

std::vector<OctreeNode*> Octree::mpReduce
private

Definition at line 54 of file Octree.hxx.

Referenced by add(), and reduce().

◆ pTree

std::unique_ptr<OctreeNode> Octree::pTree
private

Definition at line 53 of file Octree.hxx.

Referenced by GetBestPaletteIndex(), GetPalette(), and Octree().


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