blob: 1ebb2e54e4b829b2588a01e1aa7661e971f3ac5c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
/***********************************************************************
************************************************************************/
// for the class
#include <Visual3d_LayerItem.ixx>
//
//-Constructors
//
Visual3d_LayerItem::Visual3d_LayerItem() :
MyIsNeedToRecompute(Standard_False)
{
}
void Visual3d_LayerItem::ComputeLayerPrs()
{
SetNeedToRecompute( Standard_False );
}
void Visual3d_LayerItem::RedrawLayerPrs()
{
if ( IsNeedToRecompute() )
ComputeLayerPrs();
}
Standard_Boolean Visual3d_LayerItem::IsNeedToRecompute() const
{
return MyIsNeedToRecompute;
}
void Visual3d_LayerItem::SetNeedToRecompute( const Standard_Boolean flag )
{
MyIsNeedToRecompute = flag;
}
|