NifTK  16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
Public Member Functions | List of all members
niftk::LookupTableProviderService Class Referenceabstract

Service to provide lookup tables. More...

Inheritance diagram for niftk::LookupTableProviderService:
Inheritance graph
[legend]

Public Member Functions

virtual unsigned int GetNumberOfLookupTables ()=0
 Returns the number of lookup tables that this service knows about. More...
 
virtual bool CheckName (const QString &name)=0
 Returns if a LookupTable with the given name exists. More...
 
virtual vtkLookupTable * CreateLookupTable (const QString &lookupTableName, float lowestValueOpacity, float highestValueOpacity)=0
 Returns a pointer to a new instance of a lookup table, as specified by the index, which the client is then responsible for deleting. More...
 
virtual
NamedLookupTableProperty::Pointer 
CreateLookupTableProperty (const QString &lookupTableName, float lowestValueOpacity, float highestValueOpacity)=0
 Same as CreateLookupTable, but wraps it into a niftk::NamedLookupTableProperty. More...
 
virtual
LabeledLookupTableProperty::Pointer 
CreateLookupTableProperty (const QString &lookupTableName)=0
 Similar to CreateLookupTable, but create a niftk::LabeledLookupTableProperty. More...
 
virtual void AddNewLookupTableContainer (const LookupTableContainer *container)=0
 Add a new LookupTableContainer to the LookupTableManager. More...
 
virtual void ReplaceLookupTableContainer (const LookupTableContainer *container, const QString &lookupTableName)=0
 Replace the LookupTableContainer of the given name with another. More...
 
virtual std::vector< QString > GetTableNames ()=0
 Returns the display names of all table. More...
 
virtual bool GetIsScaled (const QString &lookupTableName)=0
 Returns whether the given table should be scaled to the window and level. More...
 

Detailed Description

Service to provide lookup tables.

Member Function Documentation

virtual void niftk::LookupTableProviderService::AddNewLookupTableContainer ( const LookupTableContainer container)
pure virtual
virtual bool niftk::LookupTableProviderService::CheckName ( const QString &  name)
pure virtual

Returns if a LookupTable with the given name exists.

Implemented in niftk::LookupTableProviderServiceImpl.

virtual vtkLookupTable* niftk::LookupTableProviderService::CreateLookupTable ( const QString &  lookupTableName,
float  lowestValueOpacity,
float  highestValueOpacity 
)
pure virtual

Returns a pointer to a new instance of a lookup table, as specified by the index, which the client is then responsible for deleting.

Parameters
lookupTableIndexa positive integer in the range [0.. (this->GetNumberOfLookupTables() - 1)].
lowestValueOpacityopacity value in the range [0..1], which if outside this range, is clamped.
highestValueOpacityopacity value in the range [0..1], which if outside this range, is clamped.
Returns

Implemented in niftk::LookupTableProviderServiceImpl.

virtual NamedLookupTableProperty::Pointer niftk::LookupTableProviderService::CreateLookupTableProperty ( const QString &  lookupTableName,
float  lowestValueOpacity,
float  highestValueOpacity 
)
pure virtual

Same as CreateLookupTable, but wraps it into a niftk::NamedLookupTableProperty.

Implemented in niftk::LookupTableProviderServiceImpl.

virtual LabeledLookupTableProperty::Pointer niftk::LookupTableProviderService::CreateLookupTableProperty ( const QString &  lookupTableName)
pure virtual

Similar to CreateLookupTable, but create a niftk::LabeledLookupTableProperty.

Implemented in niftk::LookupTableProviderServiceImpl.

virtual bool niftk::LookupTableProviderService::GetIsScaled ( const QString &  lookupTableName)
pure virtual

Returns whether the given table should be scaled to the window and level.

Implemented in niftk::LookupTableProviderServiceImpl.

virtual unsigned int niftk::LookupTableProviderService::GetNumberOfLookupTables ( )
pure virtual

Returns the number of lookup tables that this service knows about.

Implemented in niftk::LookupTableProviderServiceImpl.

virtual std::vector<QString> niftk::LookupTableProviderService::GetTableNames ( )
pure virtual

Returns the display names of all table.

Implemented in niftk::LookupTableProviderServiceImpl.

virtual void niftk::LookupTableProviderService::ReplaceLookupTableContainer ( const LookupTableContainer container,
const QString &  lookupTableName 
)
pure virtual

Replace the LookupTableContainer of the given name with another.

Implemented in niftk::LookupTableProviderServiceImpl.


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