• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeedu API Reference
  • KDE Home
  • Contact Us
 

kstars

Public Types | Public Member Functions | Static Public Member Functions | List of all members
FOV Class Reference

#include <fov.h>

Public Types

enum  Shape {
  SQUARE, CIRCLE, CROSSHAIRS, BULLSEYE,
  SOLIDCIRCLE, UNKNOWN
}
 

Public Member Functions

 FOV ()
 
 FOV (const QString &name, float a, float b=-1, float xoffset=0, float yoffset=0, float rot=0, Shape shape=SQUARE, const QString &color="#FFFFFF")
 
QString color () const
 
void draw (QPainter &p, float zoomFactor)
 
void draw (QPainter &p, float x, float y)
 
QString name () const
 
float offsetX () const
 
float offsetY () const
 
float rotation () const
 
void setColor (const QString &c)
 
void setName (const QString &n)
 
void setOffset (float fx, float fy)
 
void setRotation (float rt)
 
void setShape (Shape s)
 
void setShape (int s)
 
void setSize (float s)
 
void setSize (float sx, float sy)
 
Shape shape () const
 
float sizeX () const
 
float sizeY () const
 

Static Public Member Functions

static QList< FOV * > defaults ()
 
static FOV::Shape intToShape (int)
 
static QList< FOV * > readFOVs ()
 
static void writeFOVs (const QList< FOV * > fovs)
 

Detailed Description

class encapulating a Field-of-View symbol

Author
Jason Harris
Version
1.0

Definition at line 32 of file fov.h.

Member Enumeration Documentation

enum FOV::Shape
Enumerator
SQUARE 
CIRCLE 
CROSSHAIRS 
BULLSEYE 
SOLIDCIRCLE 
UNKNOWN 

Definition at line 34 of file fov.h.

Constructor & Destructor Documentation

FOV::FOV ( )

Default constructor.

Definition at line 47 of file fov.cpp.

FOV::FOV ( const QString &  name,
float  a,
float  b = -1,
float  xoffset = 0,
float  yoffset = 0,
float  rot = 0,
Shape  shape = SQUARE,
const QString &  color = "#FFFFFF" 
)

Definition at line 34 of file fov.cpp.

Member Function Documentation

QString FOV::color ( ) const
inline

Definition at line 65 of file fov.h.

QList< FOV * > FOV::defaults ( )
static

Fill list with default FOVs.

Definition at line 138 of file fov.cpp.

void FOV::draw ( QPainter &  p,
float  zoomFactor 
)

draw the FOV symbol on a QPainter

Parameters
preference to the target QPainter. The painter should already be started.
zoomFactoris zoom factor as in SkyMap.

Definition at line 57 of file fov.cpp.

void FOV::draw ( QPainter &  p,
float  x,
float  y 
)

draw FOV symbol so it will be inside a rectangle

Parameters
preference to the target QPainter. The painter should already be started.
xis X size of rectangle
yis Y size of rectangle

Definition at line 119 of file fov.cpp.

FOV::Shape FOV::intToShape ( int  s)
static

Definition at line 29 of file fov.cpp.

QString FOV::name ( ) const
inline

Definition at line 46 of file fov.h.

float FOV::offsetX ( ) const
inline

Definition at line 59 of file fov.h.

float FOV::offsetY ( ) const
inline

Definition at line 60 of file fov.h.

QList< FOV * > FOV::readFOVs ( )
static

Read list of FOVs from "fov.dat".

Definition at line 177 of file fov.cpp.

float FOV::rotation ( ) const
inline

Definition at line 63 of file fov.h.

void FOV::setColor ( const QString &  c)
inline

Definition at line 66 of file fov.h.

void FOV::setName ( const QString &  n)
inline

Definition at line 47 of file fov.h.

void FOV::setOffset ( float  fx,
float  fy 
)
inline

Definition at line 58 of file fov.h.

void FOV::setRotation ( float  rt)
inline

Definition at line 62 of file fov.h.

void FOV::setShape ( Shape  s)
inline

Definition at line 50 of file fov.h.

void FOV::setShape ( int  s)

Definition at line 132 of file fov.cpp.

void FOV::setSize ( float  s)
inline

Definition at line 55 of file fov.h.

void FOV::setSize ( float  sx,
float  sy 
)
inline

Definition at line 56 of file fov.h.

Shape FOV::shape ( ) const
inline

Definition at line 49 of file fov.h.

float FOV::sizeX ( ) const
inline

Definition at line 53 of file fov.h.

float FOV::sizeY ( ) const
inline

Definition at line 54 of file fov.h.

void FOV::writeFOVs ( const QList< FOV * >  fovs)
static

Write list of FOVs to "fov.dat".

Definition at line 154 of file fov.cpp.


The documentation for this class was generated from the following files:
  • fov.h
  • fov.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:36:22 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kstars

Skip menu "kstars"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal