CDisplay
CDisplay class constructor. Creates a new instance of the CDisplay class.
Syntax
CDisplay();
Parameters
None
Returns
None
Required Headers
CDisplay.h
Namespace
arc
Throws
None
Remarks
This class requires that SAOImage DS9 and XPA be installed.
Example
        // This code demonstrates how to launch DS9 and display
        // a previously taken 1200x1024 pixel CCD image that
        // currently resides in the kernel image buffer 
        // ( CController::mapFd ).

        #include <iostream>
        #include "CController.h"
        #include "CDisplay.h"

        using namespace std;
        using namespace arc;

        int main()
        {
            CController cController;
            CDisplay cDisplay;

            try {
                cDisplay.Launch();

                // .... previously exposed image that resides
                // .... in kernel buffer at CController.mapFd

                cDisplay.Clear();
                cDisplay.Show( cController.mapFd, 1024, 1200 );
            }
            catch ( std::exception &e )
            {
                cerr << "Exception Occurred: " << e.what() << endl;
            }
        }

© Astronomical Research Cameras, Inc.