Camstream: CamStream API documentation

Main Page Class Hierarchy Compound List File List Compound Members File Members

# CDiffPanel Class Reference

Show difference of two panels. More...

`#include <DiffPanel.h>`

Inheritance diagram for CDiffPanel::

List of all members.

## Public Methods

- CDiffPanel (CCamPanel *p1, CCamPanel *p2, int scale, const char *name="difference", const char *desc="Difference")

## Public Slots

- virtual void UpdatePanel ()
- virtual void SetSize (const QSize &new_size)

## Detailed Description

Show difference of two panels.

This panel takes 2 panels as an argument, substracts panel2 from panel1 and divides the result by 2, then adds 128.

## Constructor & Destructor Documentation

CDiffPanel::CDiffPanel ( | CCamPanel * p1,
| CCamPanel * p2,
| int scale,
| const char * name = "difference",
| const char * desc = "Difference" )

## Member Function Documentation

void CDiffPanel::SetSize ( | const QSize & new_size )`[virtual, slot]`

| [overloaded] Set size & set palette. This function is overloaded because after the default SetSize, it creates a new palette that take the Scale into effect (in other words, the scale is only done for viewing, not the actual calculation). Reimplemented from CCamPanel.

virtual void CDiffPanel::UpdatePanel ( | )`[virtual, slot]`

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

- DiffPanel.cc
- DiffPanel.h