1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-09-03 14:10:33 +03:00

0031704: Visualization - add an interactive object AIS_LightSource representing a light source

Added new class AIS_LightSource representing a light source presentation.

Graphic3d_TMF_CameraPers - added new mode to Graphic3d_TransformPers
defining 3D point relative to camera Eye position
This commit is contained in:
mkrylova
2020-09-08 17:50:28 +03:00
committed by bugmaster
parent 9779ff75fd
commit 2daa5d95a5
16 changed files with 1409 additions and 43 deletions

View File

@@ -63,6 +63,17 @@ public:
Standard_EXPORT void FillArray (Handle(Graphic3d_ArrayOfTriangles)& theArray,
const gp_Trsf& theTrsf) const;
//! Return number of triangles in generated presentation.
Standard_Integer TrianglesNb() const { return mySlicesNb * myStacksNb * 2; }
//! Return number of vertices in generated presentation.
Standard_Integer VerticesNb (bool theIsIndexed = true) const
{
return theIsIndexed
? (mySlicesNb + 1) * (myStacksNb + 1)
: TrianglesNb() * 3;
}
public:
//! Generate primitives for 3D quadric surface presentation.
@@ -76,20 +87,6 @@ public:
protected:
//! Return number of triangles in generated presentation.
Standard_Integer TrianglesNb() const
{
return mySlicesNb * myStacksNb * 2;
}
//! Return number of vertices in generated presentation.
Standard_Integer VerticesNb (const Standard_Boolean theIsIndexed = Standard_True) const
{
return theIsIndexed
? (mySlicesNb + 1) * (myStacksNb + 1)
: TrianglesNb() * 3;
}
//! Redefine this method to generate vertex at given parameters.
virtual gp_Pnt Vertex (const Standard_Real theU, const Standard_Real theV) const = 0;