mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
0028811: Visualization - merge texturing support into AIS_Shape class and get rid of AIS_TexturedShape
AIS_Shape and AIS_ColoredShape now computes Shaded presentation with UV coordinates if texture mapping is enabled in Drawer. OpenGl_Context::SetTextureMatrix() - fixed inconsistent handling of texture cooridnates translation vector. vtexture command has been extended to handle new arguments: * -trsfTrans, -trsfScale, -trsfAngle defining transformation matrix * -setFilter, -setAnisoFilter to setup texture filtering
This commit is contained in:
@@ -11,8 +11,8 @@
|
||||
#include <Standard_OStream.hxx>
|
||||
#include <Standard_IStream.hxx>
|
||||
class Sample2D_Image;
|
||||
DEFINE_STANDARD_HANDLE(Sample2D_Image,AIS_TexturedShape)
|
||||
class Sample2D_Image : public AIS_TexturedShape {
|
||||
DEFINE_STANDARD_HANDLE(Sample2D_Image,AIS_Shape)
|
||||
class Sample2D_Image : public AIS_Shape {
|
||||
|
||||
public:
|
||||
|
||||
@@ -26,7 +26,7 @@ Standard_EXPORT inline Standard_Real GetScale() const;
|
||||
Standard_EXPORT inline void SetScale(const Standard_Real aNewScale) ;
|
||||
Standard_EXPORT virtual void SetContext(const Handle(AIS_InteractiveContext)& theContext) ;
|
||||
|
||||
DEFINE_STANDARD_RTTIEXT(Sample2D_Image,AIS_TexturedShape)
|
||||
DEFINE_STANDARD_RTTIEXT(Sample2D_Image,AIS_Shape)
|
||||
private:
|
||||
void MakeShape();
|
||||
protected:
|
||||
|
Reference in New Issue
Block a user