|
| | Graphic3d_CubeMapPacked (const TCollection_AsciiString &theFileName, const Graphic3d_ValidatedCubeMapOrder &theOrder=Graphic3d_CubeMapOrder::Default()) |
| | Initialization to load cubemap from file. @theFileName - path to the cubemap image @theOrder - array containing six different indexes of cubemap sides which maps tile grid to cubemap sides.
|
| |
| | Graphic3d_CubeMapPacked (const occ::handle< Image_PixMap > &theImage, const Graphic3d_ValidatedCubeMapOrder &theOrder=Graphic3d_CubeMapOrder::Default()) |
| | Initialization to set cubemap directly by PixMap. @thePixMap - origin PixMap @theOrder - array containing six different indexes of cubemap sides which maps tile grid to cubemap sides.
|
| |
| occ::handle< Image_CompressedPixMap > | CompressedValue (const occ::handle< Image_SupportedFormats > &theSupported) override |
| | Returns current cubemap side as compressed PixMap.
|
| |
| occ::handle< Image_PixMap > | Value (const occ::handle< Image_SupportedFormats > &theSupported) override |
| | Returns current cubemap side as PixMap. Resulting PixMap is memory wrapper over original image. Returns null handle if current side or whole cubemap is invalid. Origin image has to contain six quad tiles having one sizes without any gaps to be valid.
|
| |
| | ~Graphic3d_CubeMapPacked () override=default |
| | Empty destructor.
|
| |
| | Graphic3d_CubeMap (const TCollection_AsciiString &theFileName, bool theToGenerateMipmaps=false) |
| | Constructor defining loading cubemap from file.
|
| |
| | Graphic3d_CubeMap (const occ::handle< Image_PixMap > &thePixmap=occ::handle< Image_PixMap >(), bool theToGenerateMipmaps=false) |
| | Constructor defining direct cubemap initialization from PixMap.
|
| |
| bool | More () const |
| | Returns whether the iterator has reached the end (true if it hasn't).
|
| |
| Graphic3d_CubeMapSide | CurrentSide () const |
| | Returns current cubemap side (iterator state).
|
| |
| void | Next () |
| | Moves iterator to the next cubemap side. Uses OpenGL cubemap sides order +X -> -X -> +Y -> -Y -> +Z -> -Z.
|
| |
| void | SetZInversion (bool theZIsInverted) |
| | Sets Z axis inversion (vertical flipping).
|
| |
| bool | ZIsInverted () const |
| | Returns whether Z axis is inverted.
|
| |
| bool | HasMipmaps () const |
| | Returns whether mipmaps of cubemap will be generated or not.
|
| |
| void | SetMipmapsGeneration (bool theToGenerateMipmaps) |
| | Sets whether to generate mipmaps of cubemap or not.
|
| |
| Graphic3d_CubeMap & | Reset () |
| | Sets iterator state to +X cubemap side.
|
| |
| | ~Graphic3d_CubeMap () override |
| | Empty destructor.
|
| |
| void | EnableSmooth () |
| | enable texture smoothing
|
| |
| bool | IsSmoothed () const |
| | Returns TRUE if the texture is smoothed.
|
| |
| void | DisableSmooth () |
| | disable texture smoothing
|
| |
| void | EnableModulate () |
| | enable texture modulate mode. the image is modulate with the shading of the surface.
|
| |
| void | DisableModulate () |
| | disable texture modulate mode. the image is directly decal on the surface.
|
| |
| bool | IsModulate () const |
| | Returns TRUE if the texture is modulate.
|
| |
| void | EnableRepeat () |
| | use this methods if you want to enable texture repetition on your objects.
|
| |
| void | DisableRepeat () |
| | use this methods if you want to disable texture repetition on your objects.
|
| |
| bool | IsRepeat () const |
| | Returns TRUE if the texture repeat is enable.
|
| |
| Graphic3d_LevelOfTextureAnisotropy | AnisoFilter () const |
| |
| void | SetAnisoFilter (const Graphic3d_LevelOfTextureAnisotropy theLevel) |
| |
| | ~Graphic3d_TextureRoot () override |
| | Destructor.
|
| |
| virtual bool | IsDone () const |
| | Checks if a texture class is valid or not.
|
| |
| const OSD_Path & | Path () const |
| | Returns the full path of the defined texture. It could be empty path if GetImage() is overridden to load image not from file.
|
| |
| Graphic3d_TypeOfTexture | Type () const |
| |
| const TCollection_AsciiString & | GetId () const |
| | This ID will be used to manage resource in graphic driver.
|
| |
| size_t | Revision () const |
| | Return image revision.
|
| |
| void | UpdateRevision () |
| | Update image revision. Can be used for signaling changes in the texture source (e.g. file update, pixmap update) without re-creating texture source itself (since unique id should be never modified).
|
| |
| virtual occ::handle< Image_CompressedPixMap > | GetCompressedImage (const occ::handle< Image_SupportedFormats > &theSupported) |
| | This method will be called by graphic driver each time when texture resource should be created. It is called in front of GetImage() for uploading compressed image formats natively supported by GPU.
|
| |
| virtual occ::handle< Image_PixMap > | GetImage (const occ::handle< Image_SupportedFormats > &theSupported) |
| | This method will be called by graphic driver each time when texture resource should be created. Default constructors allow defining the texture source as path to texture image or directly as pixmap. If the source is defined as path, then the image will be dynamically loaded when this method is called (and no copy will be preserved in this class instance). Inheritors may dynamically generate the image. Notice, image data should be in Bottom-Up order (see Image_PixMap::IsTopDown())!
|
| |
| const occ::handle< Graphic3d_TextureParams > & | GetParams () const |
| |
| bool | IsColorMap () const |
| | Return flag indicating color nature of values within the texture; TRUE by default.
|
| |
| void | SetColorMap (bool theIsColor) |
| | Set flag indicating color nature of values within the texture.
|
| |
| bool | HasMipmaps () const |
| | Returns whether mipmaps should be generated or not.
|
| |
| void | SetMipmapsGeneration (bool theToGenerateMipmaps) |
| | Sets whether to generate mipmaps or not.
|
| |
| bool | IsTopDown () const |
| | Returns whether row's memory layout is top-down.
|
| |
Public Member Functions inherited from Standard_Transient |
| | Standard_Transient () |
| | Empty constructor.
|
| |
| | Standard_Transient (const Standard_Transient &) |
| | Copy constructor – does nothing.
|
| |
| Standard_Transient & | operator= (const Standard_Transient &) |
| | Assignment operator, needed to avoid copying reference counter.
|
| |
| virtual | ~Standard_Transient ()=default |
| | Destructor must be virtual.
|
| |
| virtual const opencascade::handle< Standard_Type > & | DynamicType () const |
| | Returns a type descriptor about this object.
|
| |
| bool | IsInstance (const opencascade::handle< Standard_Type > &theType) const |
| | Returns a true value if this is an instance of Type.
|
| |
| bool | IsInstance (const char *const theTypeName) const |
| | Returns a true value if this is an instance of TypeName.
|
| |
| bool | IsKind (const opencascade::handle< Standard_Type > &theType) const |
| | Returns true if this is an instance of Type or an instance of any class that inherits from Type. Note that multiple inheritance is not supported by OCCT RTTI mechanism.
|
| |
| bool | IsKind (const char *const theTypeName) const |
| | Returns true if this is an instance of TypeName or an instance of any class that inherits from TypeName. Note that multiple inheritance is not supported by OCCT RTTI mechanism.
|
| |
| Standard_Transient * | This () const |
| | Returns non-const pointer to this object (like const_cast). For protection against creating handle to objects allocated in stack or call from constructor, it will raise exception Standard_ProgramError if reference counter is zero.
|
| |
| int | GetRefCount () const noexcept |
| | Get the reference counter of this object.
|
| |
| void | IncrementRefCounter () noexcept |
| | Increments the reference counter of this object. Uses relaxed memory ordering since incrementing only requires atomicity, not synchronization with other memory operations.
|
| |
| int | DecrementRefCounter () noexcept |
| | Decrements the reference counter of this object; returns the decremented value. Uses release ordering for the decrement to ensure all writes to the object are visible before the count reaches zero. An acquire fence is added only when the count reaches zero, ensuring proper synchronization before deletion. This is more efficient than using acq_rel for every decrement.
|
| |
| virtual void | Delete () const |
| | Memory deallocator for transient classes.
|
| |
Class is intended to process cubemap packed into single image plane.