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 (OctreeNode *pNode)
 
SAL_DLLPRIVATE void deleteOctree (OctreeNode **ppNode)
 
SAL_DLLPRIVATE void add (OctreeNode **ppNode)
 
SAL_DLLPRIVATE void reduce ()
 

Private Attributes

BitmapPalette maPalette
 
sal_uLong mnLeafCount
 
sal_uLong mnLevel
 
OctreeNodepTree
 
std::vector< OctreeNode * > mpReduce
 
BitmapColor const * mpColor
 
std::unique_ptr< ImpNodeCachempNodeCache
 
const BitmapReadAccessmpAccess
 
sal_uInt16 mnPalIndex
 

Detailed Description

Definition at line 42 of file Octree.hxx.

Constructor & Destructor Documentation

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

Definition at line 143 of file Octree.cxx.

References deleteOctree(), and pTree.

Member Function Documentation

void Octree::add ( OctreeNode **  ppNode)
private
void Octree::CreatePalette ( OctreeNode pNode)
private
void Octree::deleteOctree ( OctreeNode **  ppNode)
private

Definition at line 145 of file Octree.cxx.

References i, and mpNodeCache.

Referenced by ~Octree().

sal_uInt16 Octree::GetBestPaletteIndex ( const BitmapColor rColor)

Definition at line 281 of file Octree.cxx.

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

Referenced by BitmapSimpleColorQuantizationFilter::execute().

const BitmapPalette & Octree::GetPalette ( )
void Octree::GetPalIndex ( OctreeNode pNode)
private
void Octree::reduce ( )
private

Member Data Documentation

BitmapPalette Octree::maPalette
private

Definition at line 52 of file Octree.hxx.

Referenced by CreatePalette(), and GetPalette().

sal_uLong Octree::mnLeafCount
private

Definition at line 53 of file Octree.hxx.

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

sal_uLong Octree::mnLevel
private

Definition at line 54 of file Octree.hxx.

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

sal_uInt16 Octree::mnPalIndex
private

Definition at line 60 of file Octree.hxx.

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

const BitmapReadAccess* Octree::mpAccess
private

Definition at line 59 of file Octree.hxx.

Referenced by Octree().

BitmapColor const* Octree::mpColor
private

Definition at line 57 of file Octree.hxx.

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

std::unique_ptr<ImpNodeCache> Octree::mpNodeCache
private

Definition at line 58 of file Octree.hxx.

Referenced by add(), deleteOctree(), and reduce().

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

Definition at line 56 of file Octree.hxx.

Referenced by add(), and reduce().

OctreeNode* Octree::pTree
private

Definition at line 55 of file Octree.hxx.

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


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