Simulacrum  1.2
Public Member Functions | Static Public Member Functions | Friends | List of all members
Simulacrum::SDICOM Class Reference

#include <sdicom.h>

Inheritance diagram for Simulacrum::SDICOM:
Inheritance graph
Collaboration diagram for Simulacrum::SDICOM:
Collaboration graph

Public Member Functions

 SDICOM ()
 
 SDICOM (const SDICOM &)
 
SDICOMoperator= (const SDICOM &)
 
SDICOMoperator= (SDICOM &)
 
 ~SDICOM ()
 
void reset ()
 
void clear ()
 
int setLocation (const std::string &)
 
void changeLocation (const std::string &)
 
const std::string & getLocation () const
 
const SCoordinategetExtent ()
 
DCMTaggetRootTag ()
 
SAbsTreeNodegetRoot ()
 
void refresh (bool pixeldata=false)
 
std::string getInfo (const std::string &path="")
 
const tagset_tgetTags ()
 
const DCMTaggetTag (DICOM_ID_PART_LENGTH, DICOM_ID_PART_LENGTH)
 
bool hasTag (DICOM_ID_PART_LENGTH, DICOM_ID_PART_LENGTH)
 
const std::string & getTransferSyntax ()
 
const std::string & getTransferSyntaxName ()
 
SimulacrumLibrary::str_enc stringEncoding () override
 
void setTransferSyntax (const std::string &)
 
void setAETitle (const std::string &)
 
void setMaxTagReadSize (long int)
 
void setDataDictionary (DCMDataDic *)
 
void addTag (DCMTag *, bool=true)
 
bool removeTag (const DCMTag *)
 
bool removeTag (DICOM_ID_PART_LENGTH, DICOM_ID_PART_LENGTH)
 
bool isValid () const
 
bool hasArchive ()
 
bool hasSSpace (const std::string &path="")
 
bool PixelDataPresent ()
 
void loadMissingData ()
 
void getSSpaceInto (SSpace &, const std::string &path="")
 
int loadAllTags (bool readpixeldata=false)
 
int writeAllTags (bool standardize=true)
 
void store ()
 
int loadSSpace (SSpace &)
 
int storeSSpace (SSpace &)
 
void setNativePixelData (SSpace &)
 
void makeSecondaryCapture (SSpace &)
 
bool compressJPEGLS ()
 
void setPreambleString (const std::string &)
 
const std::string & getPreambleString () const
 
int readDICOMTags (std::istream &dcmsource, DCMTag *target, unsigned numtoread=(0-1), bool readpixeldata=false, int MetaInfoEnd=-1)
 
int writeOneTag (std::ostream &dcmtarget, DCMTag &sourcetags, int &MetaInfoEnd)
 
int writeDICOMTags (std::ostream &dcmtarget, DCMTag &roottag, bool dometa=true, bool standardize=true)
 
- Public Member Functions inherited from Simulacrum::SIO
 SIO ()
 
virtual ~SIO ()
 
virtual void putSSpaceInto (SSpace &, const std::string &path="")
 
virtual const std::string getLocationPathID (const std::string &path="")
 
virtual void doStop (bool)
 
virtual bool & stop ()
 
- Public Member Functions inherited from Simulacrum::SResource
virtual void setStringEncoding (SimulacrumLibrary::str_enc)
 
virtual void load ()
 
virtual SURI URI ()
 
virtual const std::string & resourceType ()
 
virtual SResourceLoaderloader ()
 
virtual void setLoader (SResourceLoader *)
 
bool isCompressed () const
 
void decompress (const std::string &target) const
 
void compress (const std::string &target) const
 
 SResource ()
 
virtual ~SResource ()
 
- Public Member Functions inherited from Simulacrum::SConnectable
 SConnectable ()
 
virtual ~SConnectable ()
 
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 ()
 

Static Public Member Functions

static const std::string & implementationName ()
 
static const std::string & implementationUID ()
 
static const std::string & implementationVersion ()
 
static void printTag (const DCMTag &, bool=true, bool=true, bool=true, unsigned depth=0, bool structure=true)
 
static void standardizeTag (DCMTag &, bool recursive)
 
static bool postLoadSSpaceConfiguration (SSpace &, SDICOM &, bool forceZAxisDiff=false, SVector *zaxisdiff=nullptr)
 
static bool globalDeident ()
 
static void setGlobalDeident (bool)
 
static NNodeglobalDeidentMap ()
 
- Static Public Member Functions inherited from Simulacrum::SIO
static int readTabulatedData (SSpace &, std::istream &, SElem::Precision, bool isRGB, bool isSigned, bool isInterLvd=true, bool *dostop=nullptr)
 
static int writeTabulatedData (SSpace &, std::ostream &, SElem::Precision, bool isRGB)
 
static unsigned maxvaltobytewidth (unsigned)
 
- Static Public Member Functions inherited from Simulacrum::SResource
static std::string typeString ()
 
static void loadInto (SSpace &targ, SResource &&src, const std::string &uri, const std::string &respath="")
 
static void storeInto (SSpace &src, SResource &&targ, const std::string &uri, const std::string &respath="")
 

Friends

class SDICOMArch
 
class SDICOM_Server
 
class SDICOM_Client
 
class UserInfoItem
 

Additional Inherited Members

- Public Types inherited from Simulacrum::SConnectable
typedef unsigned ssignal_t
 
typedef bool sdepth_t
 
- Protected Member Functions inherited from Simulacrum::SResource
void labelSSpace (SSpace &, const std::string &path)
 
- Protected Member Functions inherited from Simulacrum::SConnectable
virtual bool addListener (SConnectable &)
 
virtual bool removeListener (SConnectable &)
 
virtual bool addTarget (SConnectable &)
 
virtual bool removeTarget (SConnectable &)
 

Constructor & Destructor Documentation

◆ SDICOM() [1/2]

SDICOM::SDICOM ( )

◆ SDICOM() [2/2]

SDICOM::SDICOM ( const SDICOM targ)

◆ ~SDICOM()

SDICOM::~SDICOM ( )

Member Function Documentation

◆ addTag()

void SDICOM::addTag ( DCMTag newtag,
bool  check = true 
)

◆ changeLocation()

void SDICOM::changeLocation ( const std::string &  newlocation)
virtual

Implements Simulacrum::SIO.

◆ clear()

void SDICOM::clear ( )
virtual

Implements Simulacrum::SResource.

◆ compressJPEGLS()

bool SDICOM::compressJPEGLS ( )

◆ getExtent()

const SCoordinate & SDICOM::getExtent ( )
virtual

Implements Simulacrum::SIO.

◆ getInfo()

std::string SDICOM::getInfo ( const std::string &  path = "")
virtual

Reimplemented from Simulacrum::SIO.

◆ getLocation()

const std::string & SDICOM::getLocation ( ) const
virtual

Implements Simulacrum::SIO.

◆ getPreambleString()

const std::string & SDICOM::getPreambleString ( ) const

◆ getRoot()

SAbsTreeNode & SDICOM::getRoot ( )
virtual

Reimplemented from Simulacrum::SIO.

◆ getRootTag()

DCMTag & SDICOM::getRootTag ( )

◆ getSSpaceInto()

void SDICOM::getSSpaceInto ( SSpace target,
const std::string &  path = "" 
)
virtual

Reimplemented from Simulacrum::SIO.

◆ getTag()

const DCMTag & SDICOM::getTag ( DICOM_ID_PART_LENGTH  lid1,
DICOM_ID_PART_LENGTH  lid2 
)

◆ getTags()

const tagset_t & SDICOM::getTags ( )

◆ getTransferSyntax()

const std::string & SDICOM::getTransferSyntax ( )

◆ getTransferSyntaxName()

const std::string & SDICOM::getTransferSyntaxName ( )

◆ globalDeident()

bool SDICOM::globalDeident ( )
static

◆ globalDeidentMap()

NNode & SDICOM::globalDeidentMap ( )
static

◆ hasArchive()

bool SDICOM::hasArchive ( )
virtual

Reimplemented from Simulacrum::SIO.

◆ hasSSpace()

bool SDICOM::hasSSpace ( const std::string &  path = "")
virtual

Reimplemented from Simulacrum::SIO.

◆ hasTag()

bool SDICOM::hasTag ( DICOM_ID_PART_LENGTH  lid1,
DICOM_ID_PART_LENGTH  lid2 
)

◆ implementationName()

const std::string & SDICOM::implementationName ( )
static

◆ implementationUID()

const std::string & SDICOM::implementationUID ( )
static

◆ implementationVersion()

const std::string & SDICOM::implementationVersion ( )
static

◆ isValid()

bool SDICOM::isValid ( ) const
virtual

Implements Simulacrum::SIO.

◆ loadAllTags()

int SDICOM::loadAllTags ( bool  readpixeldata = false)

◆ loadMissingData()

void SDICOM::loadMissingData ( )
virtual

Reimplemented from Simulacrum::SResource.

◆ loadSSpace()

int SDICOM::loadSSpace ( SSpace targetimage)
virtual

Reimplemented from Simulacrum::SIO.

◆ makeSecondaryCapture()

void SDICOM::makeSecondaryCapture ( SSpace source)

◆ operator=() [1/2]

SDICOM & SDICOM::operator= ( const SDICOM targ)

◆ operator=() [2/2]

SDICOM & SDICOM::operator= ( SDICOM targ)

◆ PixelDataPresent()

bool SDICOM::PixelDataPresent ( )

◆ postLoadSSpaceConfiguration()

bool SDICOM::postLoadSSpaceConfiguration ( SSpace targetspace,
SDICOM refdcm,
bool  forceZAxisDiff = false,
SVector zaxisdiff = nullptr 
)
static

◆ printTag()

void SDICOM::printTag ( const DCMTag atag,
bool  writelen = true,
bool  writevr = true,
bool  writename = true,
unsigned  depth = 0,
bool  structure = true 
)
static

◆ readDICOMTags()

int SDICOM::readDICOMTags ( std::istream &  dcmsource,
DCMTag target,
unsigned  numtoread = (0-1),
bool  readpixeldata = false,
int  MetaInfoEnd = -1 
)

◆ refresh()

void SDICOM::refresh ( bool  pixeldata = false)
virtual

Reimplemented from Simulacrum::SIO.

◆ removeTag() [1/2]

bool SDICOM::removeTag ( const DCMTag tagtogo)

◆ removeTag() [2/2]

bool SDICOM::removeTag ( DICOM_ID_PART_LENGTH  lid1,
DICOM_ID_PART_LENGTH  lid2 
)

◆ reset()

void SDICOM::reset ( )

◆ setAETitle()

void SDICOM::setAETitle ( const std::string &  newae)

◆ setDataDictionary()

void SDICOM::setDataDictionary ( DCMDataDic newdict)

◆ setGlobalDeident()

void SDICOM::setGlobalDeident ( bool  newident)
static

◆ setLocation()

int SDICOM::setLocation ( const std::string &  location)
virtual

Implements Simulacrum::SIO.

◆ setMaxTagReadSize()

void SDICOM::setMaxTagReadSize ( long int  newsize)

◆ setNativePixelData()

void SDICOM::setNativePixelData ( SSpace source)

◆ setPreambleString()

void SDICOM::setPreambleString ( const std::string &  newstr)

◆ setTransferSyntax()

void SDICOM::setTransferSyntax ( const std::string &  transyn)

◆ standardizeTag()

void SDICOM::standardizeTag ( DCMTag ttag,
bool  recursive 
)
static

◆ store()

void SDICOM::store ( )
virtual

Reimplemented from Simulacrum::SIO.

◆ storeSSpace()

int SDICOM::storeSSpace ( SSpace targ)
virtual

Reimplemented from Simulacrum::SIO.

◆ stringEncoding()

SimulacrumLibrary::str_enc SDICOM::stringEncoding ( )
overridevirtual

Reimplemented from Simulacrum::SResource.

◆ writeAllTags()

int SDICOM::writeAllTags ( bool  standardize = true)

◆ writeDICOMTags()

int SDICOM::writeDICOMTags ( std::ostream &  dcmtarget,
DCMTag roottag,
bool  dometa = true,
bool  standardize = true 
)

◆ writeOneTag()

int SDICOM::writeOneTag ( std::ostream &  dcmtarget,
DCMTag sourcetags,
int &  MetaInfoEnd 
)

Friends And Related Function Documentation

◆ SDICOM_Client

friend class SDICOM_Client
friend

◆ SDICOM_Server

friend class SDICOM_Server
friend

◆ SDICOMArch

friend class SDICOMArch
friend

◆ UserInfoItem

friend class UserInfoItem
friend

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