Scope
scope::gui::CScopeFOVDiagram Class Reference

#include <ScopeFOVDiagram.h>

Inherits CWindowImpl< CScopeFOVDiagram >, and COwnerDraw< CScopeFOVDiagram >.

Public Member Functions

 CScopeFOVDiagram (const uint32_t &_area, const parameters::Scope *_params)
 
*bool AttachToDlgItem (HWND hWnd)
 
void UpdateDiagram ()
 
void DrawItem (LPDRAWITEMSTRUCT lpdis)
 

Protected Attributes

const uint32_t area
 
const parameters::Scope *const params
 
std::vector< boost::signals2::connection > connections
 

Detailed Description

Owner-drawn control that displays the total FOV and the smaller FOV of the areas.

Definition at line 14 of file ScopeFOVDiagram.h.

Constructor & Destructor Documentation

scope::gui::CScopeFOVDiagram::CScopeFOVDiagram ( const uint32_t &  _area,
const parameters::Scope _params 
)
Parameters
[in]_areafor which area's FOV is this (this area's FOV will be drawn white, the others gray)
[in]_paramspointer to the parameters to use for FOV calculations

Definition at line 9 of file ScopeFOVDiagram.cpp.

Member Function Documentation

bool scope::gui::CScopeFOVDiagram::AttachToDlgItem ( HWND  hWnd)

()

Attach the control to a dialog item

Definition at line 25 of file ScopeFOVDiagram.cpp.

void scope::gui::CScopeFOVDiagram::UpdateDiagram ( )

Connected to scope parameters, called upon their change.

Definition at line 32 of file ScopeFOVDiagram.cpp.

void scope::gui::CScopeFOVDiagram::DrawItem ( LPDRAWITEMSTRUCT  lpdis)

Called from COwnerDraw.

Definition at line 37 of file ScopeFOVDiagram.cpp.

Member Data Documentation

const uint32_t scope::gui::CScopeFOVDiagram::area
protected

the area of this FPU

Definition at line 20 of file ScopeFOVDiagram.h.

const parameters::Scope* const scope::gui::CScopeFOVDiagram::params
protected

Pointer to the scope parameters to use for calculations.

Definition at line 23 of file ScopeFOVDiagram.h.

std::vector<boost::signals2::connection> scope::gui::CScopeFOVDiagram::connections
protected

Stores connections to ScopeValues that are then disconnected on destruction.

Definition at line 26 of file ScopeFOVDiagram.h.


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