VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Classes | Public Member Functions | Protected Member Functions | Friends
DtVrfSingletonFileCache Class Reference
Inheritance diagram for DtVrfSingletonFileCache:
Inheritance graph
[legend]

Classes

class  Creator
 

Public Member Functions

virtual bool needsShaderGeneration (const std::string &filename, const LoadFileOptions &options) const override
 
virtual void encodeOptionsString (const LoadFileOptions &loadFileOptions, osgDB::ReaderWriter::Options &options) const override
 
virtual void decodeOptions (const osgDB::ReaderWriter::Options &options, LoadFileOptions &loadFileOptions) const override
 
osg::ref_ptr< osg::Image > ts_readImageFile (const std::string &inputFilename, const LoadFileOptions &loadFileOptions)
 
- Public Member Functions inherited from makVrv::DtOsgFileCache
virtual ~DtOsgFileCache ()
 
virtual void initSingletonDependencies ()
 
virtual void releaseResources ()
 
virtual void releaseResources (osg::State *state)
 
virtual void setFromRecord (const makArchives::DtCacheSettingsRecord &rec)
 
osg::Node * readNodeFile (const std::string &inputFilename, const LoadFileOptions &loadFileOptions)
 
osg::ref_ptr< osg::Node > findNodeFile (const std::string &inputFilename)
 
osg::Image * readImageFile (const std::string &inputFilename, const LoadFileOptions &loadFileOptions)
 
virtual osg::Texture * getTextureInstance (const std::string &filePath, osg::Texture::FilterMode minFilter, osg::Texture::FilterMode magFilter, osg::Texture::WrapMode s, osg::Texture::WrapMode t, const LoadFileOptions &loadFileOptions)
 
virtual void ts_getTextureInstance (const std::string &filePath, osg::Texture::FilterMode minFilter, osg::Texture::FilterMode magFilter, osg::Texture::WrapMode s, osg::Texture::WrapMode t, const LoadFileOptions &loadFileOptions, osg::ref_ptr< osg::Texture > &texture)
 
virtual bool getOrLoadTexture (DtTextureInterface *textureWrapper, const std::string &filename, const DtFileCache::LoadFileOptions &loadFileOptions) override
 
virtual void runMergeDuplicateTextureVisitor (osg::Node &node)
 
DtMetaFileManagermetaFileManager ()
 
void cleanDataFilePathList (FilePathList &fileList)
 
virtual const
DtOsgShaderFilesCache
shaderFilesCache (void) const
 
virtual const std::string & loadShaderSource (const std::string &shaderFile) const
 
virtual std::string ts_getTextureFilePathAndSetNameIfNotSet (const osg::Texture *baseTexture) const
 
virtual void ts_setEffectTextureName (osg::ref_ptr< osg::Texture > &effectTexture, const std::string &validFile) const
 
virtual void ts_setEffectTextureFilterAndHardwareMipMapGen (osg::Texture *effectTexture, osg::Texture::FilterMode minFilter, osg::Texture::FilterMode magFilter, bool hardwareMipMapGen) const
 
virtual void ts_compareAndSwapIgnoreHint (osg::Texture *effectTexture, bool oldVal, bool newVal) const
 
virtual bool ts_checkAndSetIgnoreHint (osg::Object *obj, bool val, const char *hint) const
 
virtual bool ts_ignore (osg::Object *obj, const char *hint) const
 
virtual const
DtEffectControllerShaderCache
effectControllerShaderCache (void) const
 
virtual void setNumActivePagerThreads (int active)
 
virtual int numActivePagerThreads () const
 
virtual int numImageProcessingTasks () const
 
virtual void setNumDiguyWorkerThreads (int num)
 
virtual void incrementNumSleepingPagerThreads ()
 
virtual void decrementNumSleepingPagerThreads ()
 
virtual DtOsgShaderManagershaderManager (void)
 
virtual const DtOsgShaderManagershaderManager (void) const
 
virtual void ts_flushInstancingCache (bool multipass, bool flushNodes, bool flushTextures, bool flushImages)
 
virtual int numNodes () const
 
virtual int numTextures () const
 
virtual int numImages () const
 
- Public Member Functions inherited from makVrv::DtFileCache
virtual ~DtFileCache ()
 
virtual void init ()
 
LoadFileOptions defaultOptions () const
 
virtual bool getCachedNodeFile (const std::string &filePathIn, const FilePathList &paths, std::string &cachedFilePathOut, bool emitError)
 
virtual bool getCachedImageFile (const std::string &filePathIn, const FilePathList &paths, std::string &cachedFilePathOut, bool emitError)
 
virtual void setCachingEnabled (bool flag)
 
virtual bool acceleratedCachingEnabled () const
 
virtual void setCompressTextures (bool compress)
 
virtual bool compressTexturesEnabled () const
 
virtual void clearAccelerationCache ()
 
virtual void setInstancingEnabled (bool enabled)
 
virtual bool instancingEnabled () const
 
bool clearInstancesOnNewScene () const
 
void setClearInstancesOnNewScene (bool clearInstances)
 
void clearInstancingCache ()
 
void flushInstanceCache (bool multipass, bool flushNodes, bool flushTextures, bool flushImages)
 
unsigned int flushCycleCount ()
 
virtual void getRecord (makArchives::DtCacheSettingsRecord &rec) const
 
void loadDefaults (bool loadOnlyFactorySettings=false)
 
void saveAsDefaults ()
 
void exportSettings (const std::string &fileName)
 
void importSettings (const std::string &fileName)
 
virtual ExcludedExtensionsexcludedExtensions ()
 
bool isExcludedExtension (const std::string &ext) const
 
const
DtRecordSettingsBackupInterface
settingsBackup () const
 
DtRecordSettingsBackupInterfacesettingsBackup ()
 
DtDegetDe ()
 

Protected Member Functions

 DtVrfSingletonFileCache (makVrv::DtDe &de)
 
- Protected Member Functions inherited from makVrv::DtOsgFileCache
virtual osg::ref_ptr< osg::Node > ts_readNodeFile (const std::string &inputFilename, const LoadFileOptions &loadFileOptions, const osg::UserDataContainer *optionsUserData)
 
virtual osg::ref_ptr< osg::Node > ts_readCdbNodeFile (const std::string &inputFilename, const LoadFileOptions &loadFileOptions, const osg::UserDataContainer *optionsUserData)
 
virtual osg::ref_ptr< osg::Node > ts_findNodeFile (const std::string &inputFilename)
 
virtual osg::ref_ptr< osg::Image > ts_readImageFile (const std::string &inputFilename, const LoadFileOptions &loadFileOptions, const osg::UserDataContainer *optionsUserData=0L)
 
virtual osg::ref_ptr< osg::Image > ts_readCdbImageFile (const std::string &inputFilename, const LoadFileOptions &loadFileOptions, const osg::UserDataContainer *optionsUserData=0L)
 
virtual void compressCdbImage (osg::Image *image, const LoadFileOptions &loadFileOptions, const std::string &ext, const std::string &acceleratedFilename, const std::string &zipTextureName, const std::string &fileToLoad, bool loadAccelerated, bool writeAcceleratedFile, DtCVMarkerSeries &objectCreation)
 
virtual void setKeysForCdbImage (osg::Image *image, const std::string &acceleratedFilename, const std::string &absoluteInputFilename, const std::string &zipTextureName, const std::string &fileToLoad)
 
virtual osg::ref_ptr< osg::Object > ts_readObject (const std::string &filename, const osgDB::ReaderWriter::Options *options)
 
void ts_encryptImage (const std::string &inputFileName, const std::string &outputFilename, const osgDB::ReaderWriter::Options *options, bool printToConsole)
 
bool ts_resolveRelativeFilename (const LoadFileOptions &loadFileOptions, std::string &absoluteInputFilename)
 
virtual void ts_clearInstancingCache ()
 
virtual void applyEffectTexture (osg::Node *node, const std::string &extension, bool isCdb, osgDB::ReaderWriter::Options *option)
 
 DtOsgFileCache (DtDe &de)
 
virtual bool save (const std::string &origFilename, const std::string &cachedFilename, bool optimize)
 
bool saveToAcceleratedFile (const std::string &origFileName, osg::Node *nodeRef, const std::string &cachedFilename, bool writeExternalReferences)
 
virtual void addMetaFlightOptions (std::string &optionsString)
 
virtual void updateGlobalOptions ()
 
virtual void slot_onDdsFlipChanged (bool flip)
 
virtual void slot_instancingChanged (bool enabled)
 
virtual bool getAttrFromLocalCache (const std::string &filename, osg::Object **attrData)
 
virtual void writeCacheFile (osg::ref_ptr< osg::Node > node, const std::string &acceleratedFileLocation, DtCVMarkerSeries &series)
 
virtual void shadersGeneration (osg::ref_ptr< osg::Node > node, const std::string &fileToLoad)
 
virtual void squishImage (const std::string &fileToLoad, const std::string &acceleratedFilename, DtCVMarkerSeries &objectCreation, osg::ref_ptr< osg::Image > image, bool writeAcceleratedFile, bool isCDB, bool generateDDS=false)
 
virtual void saveImageFilename (const std::string &absoluteInputFilename, osg::Image *image)
 
virtual osg::ref_ptr< osg::Image > getCachedImage (const std::string &cacheKey, const std::string &inputExtension, const LoadFileOptions &loadFileOptions)
 
virtual std::string getRasterMaterialFilename (const std::string &modelFilename)
 
virtual void readCdbRasterMaterialFile (const std::string &modelMaterialFile, mcodColorMap &mcodMap, const std::string &mcodCDBMaterialString)
 
virtual void createCdbEmatImages (mcodColorMap &mcodMap, const std::string &fileToLoad, const osg::Image *cdbMaterialImage, osg::Image *imageEmat2, osg::Image *imageEmat3)
 
virtual bool processRasterMaterialCreateEmat (osgDB::ReaderWriter::ReadResult &rasterMaterial, const std::string &optionString, const std::string &fileToLoad, osg::ref_ptr< osg::Image > &imageEmat2, osg::ref_ptr< osg::Image > &imageEmat3)
 
virtual void compressCdbEmatImage (osg::Image *imageEmat, const std::string &ext, const LoadFileOptions &loadFileOptions, const std::string &cdbZipFile, const std::string &zipTextureName, bool cacheCDB, bool writeAcceleratedFile, DtCVMarkerSeries &objectCreation)
 
- Protected Member Functions inherited from makVrv::DtFileCache
virtual void autoSaveDefaultsIfNeeded ()
 
virtual bool ts_isExcludedExtension (const std::string &ext) const
 
virtual void addExcludedExtension (const std::string &ext)
 
virtual void removeExcludedExtension (const std::string &ext)
 
 DtFileCache (DtDe &de)
 

Friends

class Creator
 

Additional Inherited Members

- Public Types inherited from makVrv::DtFileCache
typedef boost::unordered_set
< std::string > 
ExcludedExtensions
 
typedef std::deque< std::string > FilePathList
 
- Static Public Member Functions inherited from makVrv::DtOsgFileCache
static void optimizeNodeGeometry (osg::Node *node)
 
- Public Attributes inherited from makVrv::DtOsgFileCache
boost::signalslib::signal
< void(osg::Node *, const
std::string &origFileName,
const std::string
&actualFileName)> 
signal_nodeFileLoaded
 
boost::signalslib::signal
< void(osg::Image *, const
std::string &origFileName,
const std::string
&actualFileName)> 
signal_imageFileLoaded
 
boost::signalslib::signal
< void(osg::Object *, const
std::string &origFileName,
const std::string
&actualFileName)> 
signal_objectFileLoaded
 
boost::signalslib::signal
< void(const std::string
&filename,
osgDB::ReaderWriter::ReadResult
&, const
osgDB::ReaderWriter::Options *)> 
signal_readNodeCallback
 
boost::signalslib::signal
< void(const std::string
&filename,
osgDB::ReaderWriter::ReadResult
&, const
osgDB::ReaderWriter::Options *)> 
signal_readImageCallback
 
boost::signalslib::signal
< void(const std::string
&filename,
osgDB::ReaderWriter::ReadResult
&, const
osgDB::ReaderWriter::Options *)> 
signal_readObjectCallback
 
- Public Attributes inherited from makVrv::DtFileCache
boost::signalslib::signal< void()> signal_clearInstanceCache
 
- Protected Types inherited from makVrv::DtOsgFileCache
typedef std::map< unsigned int,
color2DArray
mcodColorMap
 
typedef std::vector< baseMaterialmaterialListType
 
typedef std::unordered_map
< std::string, std::string > 
RelativePathCache
 
typedef std::map< std::string,
osg::ref_ptr< osg::Object > > 
AttrCacheMap
 
- Protected Attributes inherited from makVrv::DtOsgFileCache
std::map< unsigned int,
materialListType
materialMap
 
DtOsgReferencedCollection
< osg::Node > 
myNodeCollection
 
DtOsgReferencedCollection
< DtTextureCollection
myTextureCollection
 
DtOsgReferencedCollection
< osg::Image > 
myImageCollection
 
AttrCacheMap myAttrCacheMap
 
tbb::spin_rw_mutex myRelativePathMutex
 
RelativePathCache myRelativePathCache
 
DtMeifConvertermyImageCompressor
 
DtMetaFileManagermyMetaFileManager
 
DtOsgShaderManagermyShaderManager
 
DtOsgShaderFilesCachemyShaderFilesCache
 
DtEffectControllerFactorymyEffectControllerFactory
 
DtEffectControllerShaderCache myEffectControllerShaderCache
 
osg::ref_ptr< DtReadFileCallbackmyReadFileCallback
 
DtSignalConnectionManager myConnections
 
int myNumActivePagerThreads
 
std::atomic< intmyNumSleepingPagerThreads
 
std::atomic< intmyNumDiguyWorkerThreads
 
osgDB::ReaderWriter * myFltDriver
 
osgDB::ReaderWriter * myFltCdbDriver
 
osgDB::ReaderWriter * myMedfDriver
 
osgDB::ReaderWriter * myRgbDriver
 
osgDB::ReaderWriter * myTiffDriver
 
osgDB::ReaderWriter * myMeifDriver
 
osgDB::ReaderWriter * myCDBZipDriver
 
- Protected Attributes inherited from makVrv::DtFileCache
DtDemyDe
 
bool myCachingEnabled
 
bool myCompressTextureFlag
 
bool myClearInstancesOnNewSceneFlag
 
bool myInstancingEnabled
 
unsigned int myFlushCycleCount
 
DtSignalConnectionManager myConnectionManager
 
ExcludedExtensions myExcludedExtensionMap
 
DtRecordSettingsBackupInterfacemySettingsBackup
 

Constructor & Destructor Documentation

DtVrfSingletonFileCache::DtVrfSingletonFileCache ( makVrv::DtDe de)
explicitprotected

Member Function Documentation

virtual bool DtVrfSingletonFileCache::needsShaderGeneration ( const std::string &  extension,
const LoadFileOptions options 
) const
overridevirtual

Returns TRUE if we should run the shader generator on the node.

Reimplemented from makVrv::DtOsgFileCache.

virtual void DtVrfSingletonFileCache::encodeOptionsString ( const LoadFileOptions loadFileOptions,
osgDB::ReaderWriter::Options &  options 
) const
overridevirtual

Encode load file options into reader write options.

Reimplemented from makVrv::DtOsgFileCache.

virtual void DtVrfSingletonFileCache::decodeOptions ( const osgDB::ReaderWriter::Options &  options,
LoadFileOptions loadFileOptions 
) const
overridevirtual

Decode reader write options into load file options.

Reimplemented from makVrv::DtOsgFileCache.

osg::ref_ptr<osg::Image> DtVrfSingletonFileCache::ts_readImageFile ( const std::string &  inputFilename,
const LoadFileOptions loadFileOptions 
)

Friends And Related Function Documentation

friend class Creator
friend

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

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)