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:
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user