0024622: Add method to AIS_TexturedShape class to assign texture data directly from...
authorapl <apl@opencascade.com>
Thu, 6 Mar 2014 10:15:39 +0000 (14:15 +0400)
committerabv <abv@opencascade.com>
Thu, 6 Mar 2014 11:48:03 +0000 (15:48 +0400)
commitf376ac72de6017593e75899b69c9df7d9546e72b
tree753dc135035fa79364382ae6e4155db916931a41
parentd53ae65f6515d16827a08ba2d75727488309a4eb
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.
24 files changed:
src/AIS/AIS.cdl
src/AIS/AIS_TexturedShape.cdl [deleted file]
src/AIS/AIS_TexturedShape.cxx
src/AIS/AIS_TexturedShape.hxx [new file with mode: 0644]
src/AIS/FILES
src/Graphic3d/Graphic3d_Texture1D.cdl
src/Graphic3d/Graphic3d_Texture1D.cxx
src/Graphic3d/Graphic3d_Texture1Dmanual.cdl
src/Graphic3d/Graphic3d_Texture1Dmanual.cxx
src/Graphic3d/Graphic3d_Texture1Dsegment.cdl
src/Graphic3d/Graphic3d_Texture1Dsegment.cxx
src/Graphic3d/Graphic3d_Texture2D.cdl
src/Graphic3d/Graphic3d_Texture2D.cxx
src/Graphic3d/Graphic3d_Texture2Dmanual.cdl
src/Graphic3d/Graphic3d_Texture2Dmanual.cxx
src/Graphic3d/Graphic3d_Texture2Dplane.cdl
src/Graphic3d/Graphic3d_Texture2Dplane.cxx
src/Graphic3d/Graphic3d_TextureMap.cdl
src/Graphic3d/Graphic3d_TextureMap.cxx
src/Graphic3d/Graphic3d_TextureRoot.cdl
src/Graphic3d/Graphic3d_TextureRoot.cxx
src/MeshVS/MeshVS_NodalColorPrsBuilder.cxx
src/QABugs/QABugs_19.cxx
tests/bugs/vis/bug24622 [new file with mode: 0644]