1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-09 13:22:24 +03:00

0024622: Add method to AIS_TexturedShape class to assign texture data directly from byte stream

Added methods to specify Image_PixMap as texture source to AIS_TexturedShape and Graphic3d_TextureRoot.
Modified internal class MeshVS_ImageTexture2D, originally used for the purpose of sourcing texture as Image_PixMap.

AIS_TexturedShape class:
- Get rid from cdl declaration.
- Remove unused and uninitialized field myDeflection / method Deflection().
- Improve class documentation.
- Use Graphic3d_NOT_2D_UNKNOWN instead of -1.
- Use myIsCustomOrigin and myToScale flags to use/ignore custom values.
This commit is contained in:
apl
2014-03-06 14:15:39 +04:00
committed by abv
parent d53ae65f65
commit f376ac72de
24 changed files with 588 additions and 437 deletions

View File

@@ -27,6 +27,16 @@ Graphic3d_TextureMap::Graphic3d_TextureMap (const TCollection_AsciiString& theFi
{
}
// =======================================================================
// function : Graphic3d_TextureMap
// purpose :
// =======================================================================
Graphic3d_TextureMap::Graphic3d_TextureMap (const Handle(Image_PixMap)& thePixMap,
const Graphic3d_TypeOfTexture theType)
: Graphic3d_TextureRoot (thePixMap, theType)
{
}
// =======================================================================
// function : EnableSmooth
// purpose :