Simulacrum  1.2
Public Member Functions | Protected Member Functions | Friends | List of all members
Simulacrum::SSpace Class Reference

#include <sspace.h>

Inheritance diagram for Simulacrum::SSpace:
Inheritance graph
Collaboration diagram for Simulacrum::SSpace:
Collaboration graph

Public Member Functions

 SSpace ()
 
 SSpace (const SCoordinate &)
 
 SSpace (SSpace &)
 
 SSpace (const SSpace &)
 
virtual ~SSpace ()
 
virtual SSpaceNew ()
 
virtual SElemSet::Size calcIndex (const SCoordinate &) const
 
virtual int concatenate (std::vector< SSpace * > &)
 
virtual SSpaceoperator= (SSpace &)
 
virtual SSpaceoperator= (const SSpace &)
 
virtual void get2DRGBAInto (SSpace &, unsigned short downsample=0, bool mergecontexts=true, float opacity=0.3, SCoordinate *cropb=nullptr, SCoordinate *crope=nullptr, SCoordinate::Precision zoffset=-1)
 
virtual void copyInto (SSpace &, bool withimagedata=true)
 
virtual bool resize (const SCoordinate &)
 
virtual SElem::DataSource SElemData (const SCoordinate &)
 
virtual SElem::DataSource SElemData_Passive (const SCoordinate &)
 
virtual SElem::DataSource operator[] (const SCoordinate &)
 
virtual void SElemInto (const SCoordinate &, SElem &target)
 
virtual SElem::Ptr getNativeSElem ()
 
virtual SElemgetNativeSElemP ()
 
virtual void setNativeSElemType (SElem *)
 
virtual void lockNativeSElemType (bool)
 
virtual bool nativeSElemTypeLocked ()
 
virtual const SCoordinateextent () const
 
const SCoordinateextentP () const
 
bool reinterpretExtent (const SCoordinate &)
 
virtual void promoteExtent ()
 
virtual void reset ()
 
virtual SSpacegetSourceSSpace ()
 
virtual void setActiveContext (CONTEXTS_t)
 
virtual CONTEXTS_t activeContext () const
 
virtual CONTEXTS_t contexts () const
 
virtual CONTEXTS_t newContext ()
 
virtual void removeContext (CONTEXTS_t)
 
virtual GPLUTLUT ()
 
virtual SElemSetselemDataStore ()
 
virtual std::vector< DataContext * > & selemDataContexts ()
 
GPLUTLUTP ()
 
SElemSetselemDataStoreP ()
 
std::vector< DataContext * > * selemDataContextsP ()
 
virtual void applyLUT ()
 
void autoLUT (int percentile=90, long long int width=-1, long long int center=-1, const std::vector< std::pair< float, float > > *histogram=nullptr)
 
virtual bool postLoadConfig ()
 
virtual NNodeinformationNode ()
 
NNodeinformationNodeP ()
 
virtual const SVectorspacing () const
 
const SVectorspacingP () const
 
virtual void setSpacing (const SVector &)
 
virtual std::string spacingUnits (long long int index=0) const
 
virtual void setSpacingUnits (const std::string &, long long int index=0)
 
virtual SPtr< SSpaceIteratorgetFastNativeIterator ()
 
virtual SSpaceIteratorgetFastNativeIteratorP ()
 
virtual SVector toGlobalSpace (const SVector &)
 
virtual SVector fromGlobalSpace (const SVector &)
 
virtual void setToGlobalSpaceFunction (std::function< SVector(SSpace *, const SVector &)>)
 
virtual void setFromGlobalSpaceFunction (std::function< SVector(SSpace *, const SVector &)>)
 
virtual std::string globalSpaceID () const
 
virtual void setGlobalSpaceID (const std::string &)
 
virtual std::string vectorMeaning (const SVector &, bool strict=true) const
 
virtual SVector meaningVector (const std::string &) const
 
virtual void assignVectorMeaning (const SVector &, const std::string &)
 
virtual void resetMeaningVectors ()
 
virtual SCoordinate toSourceCoords (const SCoordinate &) const
 
virtual bool fromSourceCoords (const SCoordinate &sourcecoord, SCoordinate &localcoord) const
 
- Public Member Functions inherited from Simulacrum::SConnectable
 SConnectable ()
 
virtual ~SConnectable ()
 
virtual void refresh (sdepth_t)
 
void emitRefresh (sdepth_t)
 
virtual void signal (ssignal_t, void *=nullptr)
 
void emitSignal (ssignal_t, void *=nullptr)
 
virtual void progress (int)
 
virtual bool sconnect (SConnectable &)
 
virtual bool sconnect (SConnectable &, bool delondiscon)
 
virtual bool sdisconnect (SConnectable &)
 
virtual void disconnectSources ()
 
virtual void disconnectListeners ()
 
virtual void disconnectListeners_Refresh ()
 
virtual bool isConnected (SConnectable &) const
 
virtual bool isConnected (SConnectable *) const
 
virtual void sconfigure (const std::string &)
 
virtual SConnectableend ()
 
virtual SConnectablepenum ()
 
virtual SConnectablepred ()
 
virtual SConnectablesucc ()
 
virtual void deleteOnDisconnect (bool)
 
virtual bool deleteOnDisconnect ()
 
virtual void setName (const std::string &)
 
virtual const std::string & getName () const
 
const std::map< std::string, double > & parameters ()
 
const std::map< std::string, std::string > & properties ()
 
bool hasProperty (const std::string &) const
 
bool hasParameter (const std::string &) const
 
void setProperty (const std::string &, const std::string &)
 
void setParameter (const std::string &, double)
 
std::string getProperty (const std::string &) const
 
double getParameter (const std::string &) const
 
- Public Member Functions inherited from Simulacrum::SLockable
virtual void lock ()
 
virtual void unlock ()
 
virtual bool try_lock ()
 
virtual void wait ()
 
virtual void refIncr ()
 
virtual void refDecr ()
 
virtual int refCount ()
 
 SLockable ()
 
 SLockable (const SLockable &)
 
virtual ~SLockable ()
 

Protected Member Functions

virtual void getRGBAScanlinesInto (SSpace *target, SCoordinate::Precision startrow, SCoordinate::Precision endrow, SCoordinate::Precision width, unsigned short step, bool mergecontexts, float opacity, SCoordinate::Precision startcol=0, SCoordinate::Precision endcol=0, SCoordinate::Precision pixeoffset=0)
 
- Protected Member Functions inherited from Simulacrum::SConnectable
virtual bool addListener (SConnectable &)
 
virtual bool removeListener (SConnectable &)
 
virtual bool addTarget (SConnectable &)
 
virtual bool removeTarget (SConnectable &)
 

Friends

class SSpaceIteratorNativeFast
 

Additional Inherited Members

- Public Types inherited from Simulacrum::SConnectable
typedef unsigned ssignal_t
 
typedef bool sdepth_t
 

Constructor & Destructor Documentation

◆ SSpace() [1/4]

SSpace::SSpace ( )

◆ SSpace() [2/4]

SSpace::SSpace ( const SCoordinate extent)

◆ SSpace() [3/4]

SSpace::SSpace ( SSpace targ)

◆ SSpace() [4/4]

SSpace::SSpace ( const SSpace )

◆ ~SSpace()

SSpace::~SSpace ( )
virtual

Member Function Documentation

◆ activeContext()

CONTEXTS_t SSpace::activeContext ( ) const
virtual

Reimplemented in Simulacrum::SSlicer.

◆ applyLUT()

void SSpace::applyLUT ( )
virtual

◆ assignVectorMeaning()

void SSpace::assignVectorMeaning ( const SVector nvect,
const std::string &  nmean 
)
virtual

Reimplemented in Simulacrum::SSlicer.

◆ autoLUT()

void SSpace::autoLUT ( int  percentile = 90,
long long int  width = -1,
long long int  center = -1,
const std::vector< std::pair< float, float > > *  histogram = nullptr 
)

◆ calcIndex()

SElemSet::Size SSpace::calcIndex ( const SCoordinate coordref) const
virtual

◆ concatenate()

int SSpace::concatenate ( std::vector< SSpace * > &  spacelist)
virtual

◆ contexts()

CONTEXTS_t SSpace::contexts ( ) const
virtual

Reimplemented in Simulacrum::SSlicer.

◆ copyInto()

void SSpace::copyInto ( SSpace target,
bool  withimagedata = true 
)
virtual

Reimplemented in Simulacrum::SSlicer.

◆ extent()

const SCoordinate & SSpace::extent ( ) const
virtual

Reimplemented in Simulacrum::SSlicer.

◆ extentP()

const SCoordinate * SSpace::extentP ( ) const

◆ fromGlobalSpace()

SVector SSpace::fromGlobalSpace ( const SVector source)
virtual

Reimplemented in Simulacrum::SSlicer.

◆ fromSourceCoords()

bool SSpace::fromSourceCoords ( const SCoordinate sourcecoord,
SCoordinate localcoord 
) const
virtual

Reimplemented in Simulacrum::SSlicer.

◆ get2DRGBAInto()

void SSpace::get2DRGBAInto ( SSpace ,
unsigned short  downsample = 0,
bool  mergecontexts = true,
float  opacity = 0.3,
SCoordinate cropb = nullptr,
SCoordinate crope = nullptr,
SCoordinate::Precision  zoffset = -1 
)
virtual

Reimplemented in Simulacrum::SSlicer.

◆ getFastNativeIterator()

SPtr< SSpaceIterator > SSpace::getFastNativeIterator ( )
virtual

Reimplemented in Simulacrum::SSlicer.

◆ getFastNativeIteratorP()

SSpaceIterator * SSpace::getFastNativeIteratorP ( )
virtual

Reimplemented in Simulacrum::SSlicer.

◆ getNativeSElem()

SElem::Ptr SSpace::getNativeSElem ( )
virtual

Reimplemented in Simulacrum::SSlicer.

◆ getNativeSElemP()

SElem * SSpace::getNativeSElemP ( )
virtual

Reimplemented in Simulacrum::SSlicer.

◆ getRGBAScanlinesInto()

void SSpace::getRGBAScanlinesInto ( SSpace target,
SCoordinate::Precision  startrow,
SCoordinate::Precision  endrow,
SCoordinate::Precision  width,
unsigned short  step,
bool  mergecontexts,
float  opacity,
SCoordinate::Precision  startcol = 0,
SCoordinate::Precision  endcol = 0,
SCoordinate::Precision  pixeoffset = 0 
)
protectedvirtual

Reimplemented in Simulacrum::SSlicer.

◆ getSourceSSpace()

SSpace & SSpace::getSourceSSpace ( )
virtual

Reimplemented in Simulacrum::SSlicer.

◆ globalSpaceID()

std::string SSpace::globalSpaceID ( ) const
virtual

Reimplemented in Simulacrum::SSlicer.

◆ informationNode()

NNode & SSpace::informationNode ( )
virtual

Reimplemented in Simulacrum::SSlicer.

◆ informationNodeP()

NNode * SSpace::informationNodeP ( )

◆ lockNativeSElemType()

void SSpace::lockNativeSElemType ( bool  lockpox)
virtual

◆ LUT()

GPLUT & SSpace::LUT ( )
virtual

Reimplemented in Simulacrum::SSlicer.

◆ LUTP()

GPLUT * SSpace::LUTP ( )

◆ meaningVector()

SVector SSpace::meaningVector ( const std::string &  meaning) const
virtual

Reimplemented in Simulacrum::SSlicer.

◆ nativeSElemTypeLocked()

bool SSpace::nativeSElemTypeLocked ( )
virtual

◆ New()

SSpace * SSpace::New ( )
virtual

Reimplemented in Simulacrum::SSlicer.

◆ newContext()

CONTEXTS_t SSpace::newContext ( )
virtual

Reimplemented in Simulacrum::SSlicer.

◆ operator=() [1/2]

SSpace & SSpace::operator= ( const SSpace )
virtual

◆ operator=() [2/2]

SSpace & SSpace::operator= ( SSpace source)
virtual

◆ operator[]()

SElem::DataSource SSpace::operator[] ( const SCoordinate selemcoord)
virtual

◆ postLoadConfig()

bool SSpace::postLoadConfig ( )
virtual

◆ promoteExtent()

void SSpace::promoteExtent ( )
virtual

◆ reinterpretExtent()

bool SSpace::reinterpretExtent ( const SCoordinate newextent)

◆ removeContext()

void SSpace::removeContext ( CONTEXTS_t  contextnum)
virtual

Reimplemented in Simulacrum::SSlicer.

◆ reset()

void SSpace::reset ( )
virtual

Reimplemented in Simulacrum::SSlicer.

◆ resetMeaningVectors()

void SSpace::resetMeaningVectors ( )
virtual

Reimplemented in Simulacrum::SSlicer.

◆ resize()

bool SSpace::resize ( const SCoordinate nncoord)
virtual

Reimplemented in Simulacrum::SSlicer.

◆ SElemData()

SElem::DataSource SSpace::SElemData ( const SCoordinate selemcoord)
virtual

Reimplemented in Simulacrum::SSlicer.

◆ SElemData_Passive()

SElem::DataSource SSpace::SElemData_Passive ( const SCoordinate selemcoord)
virtual

Reimplemented in Simulacrum::SSlicer.

◆ selemDataContexts()

std::vector< DataContext * > & SSpace::selemDataContexts ( )
virtual

Reimplemented in Simulacrum::SSlicer.

◆ selemDataContextsP()

std::vector< DataContext * > * SSpace::selemDataContextsP ( )

◆ selemDataStore()

SElemSet & SSpace::selemDataStore ( )
virtual

Reimplemented in Simulacrum::SSlicer.

◆ selemDataStoreP()

SElemSet * SSpace::selemDataStoreP ( )

◆ SElemInto()

void SSpace::SElemInto ( const SCoordinate selemcoord,
SElem target 
)
virtual

Reimplemented in Simulacrum::SSlicer.

◆ setActiveContext()

void SSpace::setActiveContext ( CONTEXTS_t  newcon)
virtual

Reimplemented in Simulacrum::SSlicer.

◆ setFromGlobalSpaceFunction()

void SSpace::setFromGlobalSpaceFunction ( std::function< SVector(SSpace *, const SVector &)>  newf)
virtual

Reimplemented in Simulacrum::SSlicer.

◆ setGlobalSpaceID()

void SSpace::setGlobalSpaceID ( const std::string &  newspaceid)
virtual

Reimplemented in Simulacrum::SSlicer.

◆ setNativeSElemType()

void SSpace::setNativeSElemType ( SElem newpox)
virtual

Reimplemented in Simulacrum::SSlicer.

◆ setSpacing()

void SSpace::setSpacing ( const SVector nspace)
virtual

Reimplemented in Simulacrum::SSlicer.

◆ setSpacingUnits()

void SSpace::setSpacingUnits ( const std::string &  nunits,
long long int  index = 0 
)
virtual

Reimplemented in Simulacrum::SSlicer.

◆ setToGlobalSpaceFunction()

void SSpace::setToGlobalSpaceFunction ( std::function< SVector(SSpace *, const SVector &)>  newf)
virtual

Reimplemented in Simulacrum::SSlicer.

◆ spacing()

const SVector & SSpace::spacing ( ) const
virtual

Reimplemented in Simulacrum::SSlicer.

◆ spacingP()

const SVector * SSpace::spacingP ( ) const

◆ spacingUnits()

std::string SSpace::spacingUnits ( long long int  index = 0) const
virtual

Reimplemented in Simulacrum::SSlicer.

◆ toGlobalSpace()

SVector SSpace::toGlobalSpace ( const SVector source)
virtual

Reimplemented in Simulacrum::SSlicer.

◆ toSourceCoords()

SCoordinate SSpace::toSourceCoords ( const SCoordinate localc) const
virtual

Reimplemented in Simulacrum::SSlicer.

◆ vectorMeaning()

std::string SSpace::vectorMeaning ( const SVector avect,
bool  strict = true 
) const
virtual

Reimplemented in Simulacrum::SSlicer.

Friends And Related Function Documentation

◆ SSpaceIteratorNativeFast

friend class SSpaceIteratorNativeFast
friend

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