ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
ccMapWindow Class Reference

2D map display window More...

#include <ccMapWindow.h>

Inheritance diagram for ccMapWindow:
[legend]
Collaboration diagram for ccMapWindow:
[legend]

Public Member Functions

 ccMapWindow (QWidget *parent=0)
 Default constructor. More...
 
virtual ~ccMapWindow ()
 Destructor. More...
 
void setAssociatedScalarField (ccScalarField *sf)
 Sets associated scalar-field. More...
 
void showSF (bool state)
 Whether to show associated SF or not. More...
 
bool sfShown () const
 Returns whether associated SF should be shown or not. More...
 
ccScalarField * getAssociatedScalarField () const
 Returns associated scalar field. More...
 
virtual void getContext (CC_DRAW_CONTEXT &context)
 

Protected Attributes

ccScalarField * m_sfForRampDisplay
 Associated scalar field. More...
 
bool m_showSF
 Whether to show or not the associated SF. More...
 

Detailed Description

2D map display window

Constructor & Destructor Documentation

◆ ccMapWindow()

ccMapWindow::ccMapWindow ( QWidget *  parent = 0)
inlineexplicit

Default constructor.

◆ ~ccMapWindow()

virtual ccMapWindow::~ccMapWindow ( )
inlinevirtual

Destructor.

References setAssociatedScalarField().

Member Function Documentation

◆ getAssociatedScalarField()

ccScalarField* ccMapWindow::getAssociatedScalarField ( ) const
inline

◆ getContext()

virtual void ccMapWindow::getContext ( CC_DRAW_CONTEXT &  context)
inlinevirtual

◆ setAssociatedScalarField()

void ccMapWindow::setAssociatedScalarField ( ccScalarField *  sf)
inline

Sets associated scalar-field.

This scalar field will be used for color ramp display.

References CCShareable::link(), m_sfForRampDisplay, and CCShareable::release().

Referenced by DistanceMapGenerationDlg::clearView(), DistanceMapGenerationDlg::update(), and ~ccMapWindow().

◆ sfShown()

bool ccMapWindow::sfShown ( ) const
inline

Returns whether associated SF should be shown or not.

References m_showSF.

Referenced by DistanceMapGenerationDlg::updateZoom().

◆ showSF()

void ccMapWindow::showSF ( bool  state)
inline

Whether to show associated SF or not.

References m_showSF.

Referenced by DistanceMapGenerationDlg::DistanceMapGenerationDlg(), and DistanceMapGenerationDlg::toggleColorScaleDisplay().

Member Data Documentation

◆ m_sfForRampDisplay

ccScalarField* ccMapWindow::m_sfForRampDisplay
protected

Associated scalar field.

Referenced by getAssociatedScalarField(), getContext(), and setAssociatedScalarField().

◆ m_showSF

bool ccMapWindow::m_showSF
protected

Whether to show or not the associated SF.

Referenced by getContext(), sfShown(), and showSF().


The documentation for this class was generated from the following file: