This file is indexed.

/usr/include/plplot/wxPLplotstream.h is in libplplot-dev 5.10.0+dfsg2-0.1ubuntu2.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
// $Id: wxPLplotstream.h.in 12334 2013-05-04 16:43:33Z airwin $
//
// Copyright (C) 2005  Werner Smekal
//
// This file is part of PLplot.
//
// PLplot is free software; you can redistribute it and/or modify
// it under the terms of the GNU Library General Public License as published
// by the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// PLplot is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU Library General Public License for more details.
//
// You should have received a copy of the GNU Library General Public License
// along with PLplot; if not, write to the Free Software
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
//

#if !defined ( WXPLPLOTSTREAM_H__INCLUDED_ )
#define WXPLPLOTSTREAM_H__INCLUDED_

#include "plstream.h"

// forward declarations
class wxImage;
class wxDC;

// we define some macros, where the *name* of these depend on
// if freetype is available - in the code we have checks
// for the WX_TEMP_...._IS_ON macros (otherwise WX_TEMP_...._IS_OFF
// is defined)
#define WX_TEMP_PL_HAVE_FREETYPE_IS_

//! Style options for wxPLplotstream:
//  wxPLPLOT_NONE: no option
//  wxPLPLOT_FREETYPE: use freetype library instead of Hershey fonts
//  wxPLPLOT_SMOOTHTEXT: antialiase font (if freetype library is used)
//  wxPLPLOT_BACKEND_DC: use the standard wxDC backend (always available)
//  wxPLPLOT_BACKEND_AGG: use the AGG backend (if available)
//  wxPLPLOT_BACKEND_GC: use the wxGraphicsContext backend (if available)
//  wxPLPLOT_DRAWTEXT: use wxWidgets routines to draw text
//  wxPLPLOT_USE_HERSHEY_SYMBOLS: use hershey symbols to draw symbols instead of font symbols
//
enum
{
    wxPLPLOT_NONE                = 0,
#ifdef WX_TEMP_PL_HAVE_FREETYPE_IS_ON
    wxPLPLOT_FREETYPE            = 1 << 0,
    wxPLPLOT_SMOOTH_TEXT         = 1 << 1,
#endif
    wxPLPLOT_BACKEND_DC          = 1 << 2,
    wxPLPLOT_BACKEND_AGG         = 1 << 3,
    wxPLPLOT_BACKEND_GC          = 1 << 4,
    wxPLPLOT_DRAW_TEXT           = 1 << 5,
    wxPLPLOT_USE_HERSHEY_SYMBOLS = 1 << 6
};

//! wxPLplotstream is inherited from plstream, which is the C++ interface
//  to the plplot API. The documentation of this interface is described in
//  the PLplot manual, not here.
//
class PLDLLIMPEXP_WX wxPLplotstream : public plstream
{
public:
    wxPLplotstream();                                                              //!< Constructor.
    wxPLplotstream( wxDC * dc, int width, int height, int style = wxPLPLOT_NONE ); //!< Constructor.
    void Create( wxDC *dc, int width, int height, int style );
    ~wxPLplotstream();
    //wxPLplotstream( wxImage *buffer, int width, int height, int style );
    void set_stream();                           //!< Calls some code before every PLplot command.
    void SetSize( int width, int height );       //!< Set new size of plot area.
    void RenewPlot();                            //!< Redo plot and update memory dc
    void Update();                               //!< Update memory dc, but don't redo plot

private:
    void InitStream();

private:
    wxDC   * m_dc;      //!< Pointer to wxDC to plot into.
    wxImage* m_image;   //!< pointer to wxImage
    int    m_width;     //!< Width of dc/plot area.
    int    m_height;    //!< Height of dc/plot area.
    int    m_style;     //!< style of this plot
    int    m_backend;   //!< driver backend used
};


#endif // !defined( WXPLPLOTSTREAM_H__INCLUDED_ )