VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Attributes
makVrv::DtOsgTextureWrapper Class Reference

Interface for a texture. Used to pass in a texture to vrvGraphics.

Inheritance diagram for makVrv::DtOsgTextureWrapper:
Inheritance graph
[legend]

Public Member Functions

 DtOsgTextureWrapper (DtDe &, osg::Texture *node)
 
virtual ~DtOsgTextureWrapper ()
 
 DtOsgTextureWrapper ()=delete
 
 DtOsgTextureWrapper (const DtOsgTextureWrapper &)=delete
 
DtOsgTextureWrapperoperator= (const DtOsgTextureWrapper &)=delete
 
virtual bool loadTextureFromFile (const std::string &fileName) override
 
virtual bool loadTextureFromFile (const std::string &fileName, const DtFileCache::LoadFileOptions &loadFileOptions) override
 
virtual bool getStipplePattern (char **stipplePattern) override
 
virtual bool valid () const override
 
virtual void releaseGLObjects ()
 
virtual void setMinFilter (osg::Texture::FilterMode)
 
virtual osg::Texture::FilterMode minFilter ()
 
virtual void setMagFilter (osg::Texture::FilterMode)
 
virtual osg::Texture::FilterMode magFilter ()
 
virtual void setWrapModeS (osg::Texture::WrapMode)
 
virtual osg::Texture::WrapMode wrapModeS ()
 
virtual void setWrapModeT (osg::Texture::WrapMode)
 
virtual osg::Texture::WrapMode wrapModeT ()
 
virtual bool loadTexture (const std::string &filename, osg::Texture::FilterMode minFilter, osg::Texture::FilterMode magFilter, osg::Texture::WrapMode s, osg::Texture::WrapMode t, const DtFileCache::LoadFileOptions &loadFileOptions)
 
virtual float textureWidth () const override
 
virtual const std::string & filename () const override
 
virtual void scaleTexture (int w, int h) override
 
virtual DtVector4< float > color (unsigned int x, unsigned int y) const override
 
virtual void setTexture (const std::string fileName, osg::Texture *texture)
 
virtual osg::Texture * texture () const
 
- Public Member Functions inherited from makVrv::DtTextureInterface
 DtTextureInterface ()
 
virtual ~DtTextureInterface ()
 
 DtTextureInterface (const DtTextureInterface &)=delete
 
DtTextureInterfaceoperator= (const DtTextureInterface &)=delete
 

Protected Attributes

DtDemyDe
 
DtOsgFileCachemyOsgFileCache
 
std::string myFilename
 
osg::Texture::FilterMode myMinFilter
 
osg::Texture::FilterMode myMagFilter
 
osg::Texture::WrapMode myWrapModeS
 
osg::Texture::WrapMode myWrapModeT
 
osg::ref_ptr< osg::Texture > myTexture
 
DtSignalConnectionManager myConnectionManager
 

Constructor & Destructor Documentation

makVrv::DtOsgTextureWrapper::DtOsgTextureWrapper ( DtDe ,
osg::Texture *  node 
)

Constructor.

virtual makVrv::DtOsgTextureWrapper::~DtOsgTextureWrapper ( )
virtual

Destructor.

makVrv::DtOsgTextureWrapper::DtOsgTextureWrapper ( )
delete

not allowed - default constructor

makVrv::DtOsgTextureWrapper::DtOsgTextureWrapper ( const DtOsgTextureWrapper )
delete

not allowed - copy constructor

Member Function Documentation

DtOsgTextureWrapper& makVrv::DtOsgTextureWrapper::operator= ( const DtOsgTextureWrapper )
delete

not allowed - equals operator

virtual bool makVrv::DtOsgTextureWrapper::loadTextureFromFile ( const std::string &  fileName)
overridevirtual

Attempt to load a texture from file Returns true if loaded successfully Calls loadTexture with default params.

Implements makVrv::DtTextureInterface.

virtual bool makVrv::DtOsgTextureWrapper::loadTextureFromFile ( const std::string &  fileName,
const DtFileCache::LoadFileOptions loadFileOptions 
)
overridevirtual
virtual void makVrv::DtOsgTextureWrapper::setTexture ( const std::string  fileName,
osg::Texture *  texture 
)
virtual

Set/Get myTexture.

virtual osg::Texture* makVrv::DtOsgTextureWrapper::texture ( ) const
virtual

Set/Get myTexture.

virtual bool makVrv::DtOsgTextureWrapper::getStipplePattern ( char **  stipplePattern)
overridevirtual

Get the 32x32 stipple pattern representation of this texture.

Implements makVrv::DtTextureInterface.

virtual bool makVrv::DtOsgTextureWrapper::valid ( ) const
overridevirtual

Returns whether or not this wrapper contains a valid texture.

Implements makVrv::DtTextureInterface.

virtual void makVrv::DtOsgTextureWrapper::releaseGLObjects ( )
virtual
virtual void makVrv::DtOsgTextureWrapper::setMinFilter ( osg::Texture::FilterMode  )
virtual
virtual osg::Texture::FilterMode makVrv::DtOsgTextureWrapper::minFilter ( )
virtual
virtual void makVrv::DtOsgTextureWrapper::setMagFilter ( osg::Texture::FilterMode  )
virtual
virtual osg::Texture::FilterMode makVrv::DtOsgTextureWrapper::magFilter ( )
virtual
virtual void makVrv::DtOsgTextureWrapper::setWrapModeS ( osg::Texture::WrapMode  )
virtual
virtual osg::Texture::WrapMode makVrv::DtOsgTextureWrapper::wrapModeS ( )
virtual
virtual void makVrv::DtOsgTextureWrapper::setWrapModeT ( osg::Texture::WrapMode  )
virtual
virtual osg::Texture::WrapMode makVrv::DtOsgTextureWrapper::wrapModeT ( )
virtual
virtual bool makVrv::DtOsgTextureWrapper::loadTexture ( const std::string &  filename,
osg::Texture::FilterMode  minFilter,
osg::Texture::FilterMode  magFilter,
osg::Texture::WrapMode  s,
osg::Texture::WrapMode  t,
const DtFileCache::LoadFileOptions loadFileOptions 
)
virtual

Attempt to load the texture file, returns true if success.

virtual float makVrv::DtOsgTextureWrapper::textureWidth ( ) const
overridevirtual
virtual const std::string& makVrv::DtOsgTextureWrapper::filename ( ) const
overridevirtual

Returns the name of the file that the texture was created from. Returns "" by default, for example if the texture was not initialized.

Implements makVrv::DtTextureInterface.

virtual void makVrv::DtOsgTextureWrapper::scaleTexture ( int  w,
int  h 
)
overridevirtual
virtual DtVector4<float> makVrv::DtOsgTextureWrapper::color ( unsigned int  x,
unsigned int  y 
) const
overridevirtual

overridden

Implements makVrv::DtTextureInterface.

Member Data Documentation

DtDe& makVrv::DtOsgTextureWrapper::myDe
protected
DtOsgFileCache* makVrv::DtOsgTextureWrapper::myOsgFileCache
protected
std::string makVrv::DtOsgTextureWrapper::myFilename
protected
osg::Texture::FilterMode makVrv::DtOsgTextureWrapper::myMinFilter
protected

Default NEAREST.

osg::Texture::FilterMode makVrv::DtOsgTextureWrapper::myMagFilter
protected

Default LINEAR.

osg::Texture::WrapMode makVrv::DtOsgTextureWrapper::myWrapModeS
protected

Default REPEAT.

osg::Texture::WrapMode makVrv::DtOsgTextureWrapper::myWrapModeT
protected

Default REPEAT.

osg::ref_ptr<osg::Texture> makVrv::DtOsgTextureWrapper::myTexture
protected
DtSignalConnectionManager makVrv::DtOsgTextureWrapper::myConnectionManager
protected

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)