summaryrefslogtreecommitdiff
path: root/src/V3d/V3d_ColorScaleLayerItem.cxx
blob: 07742aef09d4e3d6cf64278469803247ad0efc40 (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
/***********************************************************************


************************************************************************/

// for the class
#include <V3d_ColorScaleLayerItem.ixx>

//
//-Constructors
//
V3d_ColorScaleLayerItem::V3d_ColorScaleLayerItem (
  const Handle(V3d_ColorScale)& aColorScale ):
Visual3d_LayerItem(),
MyColorScale(aColorScale)
{
}

void V3d_ColorScaleLayerItem::ComputeLayerPrs()
{
  Visual3d_LayerItem::ComputeLayerPrs();
}

void V3d_ColorScaleLayerItem::RedrawLayerPrs()
{
  Visual3d_LayerItem::RedrawLayerPrs();
  if ( !MyColorScale.IsNull() )
    MyColorScale->DrawScale();
}