]> OCCT Git - occt-copy.git/commit
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>
Tue, 25 Mar 2014 12:51:29 +0000 (16:51 +0400)
commit066358578eb44fe5eaaa8347d21dc5fea84092ec
tree4b62c0114fbe9ae4a4f24ed9532fb0f8e8c5809c
parent34859f05363fe47ad6aee594d0c573953350ec82
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]