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)
 
SAL_DLLPRIVATE void add (std::unique_ptr< OctreeNode > &rpNode)
 
SAL_DLLPRIVATE void reduce ()
 

Private Attributes

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

Detailed Description

Definition at line 40 of file Octree.hxx.

Constructor & Destructor Documentation

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

Definition at line 87 of file Octree.cxx.

Member Function Documentation

void Octree::add ( std::unique_ptr< OctreeNode > &  rpNode)
private

Definition at line 89 of file Octree.cxx.

References Color::GetBlue(), Color::GetGreen(), Color::GetRed(), mnLeafCount, mnLevel, mpColor, and mpReduce.

Referenced by Octree().

void Octree::CreatePalette ( OctreeNode pNode)
private
sal_uInt16 Octree::GetBestPaletteIndex ( const BitmapColor rColor)

Definition at line 212 of file Octree.cxx.

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

Referenced by BitmapSimpleColorQuantizationFilter::execute().

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

Member Data Documentation

BitmapPalette Octree::maPalette
private

Definition at line 49 of file Octree.hxx.

Referenced by CreatePalette(), and GetPalette().

sal_uLong Octree::mnLeafCount
private

Definition at line 50 of file Octree.hxx.

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

sal_uLong Octree::mnLevel
private

Definition at line 51 of file Octree.hxx.

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

sal_uInt16 Octree::mnPalIndex
private

Definition at line 56 of file Octree.hxx.

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

const BitmapReadAccess* Octree::mpAccess
private

Definition at line 55 of file Octree.hxx.

Referenced by Octree().

BitmapColor const* Octree::mpColor
private

Definition at line 54 of file Octree.hxx.

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

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

Definition at line 53 of file Octree.hxx.

Referenced by add(), and reduce().

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

Definition at line 52 of file Octree.hxx.

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


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