WXP C++ Library Version 6.74.6
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
WXP::GeomBox Class Reference

This structure sets size and location of a geometric box. More...

#include "../include/GeomBox.h"

Public Member Functions

int init ()
 
 GeomBox ()
 
 GeomBox (float rx, float ry, float rwidth, float rheight)
 
int set (float rx, float ry, float rwidth, float rheight)
 
int print ()
 

Public Attributes

float x
 
float y
 
float width
 
float height
 

Detailed Description

This structure sets size and location of a geometric box.

Author
Dan Vietor

Constructor & Destructor Documentation

◆ GeomBox() [1/2]

GeomBox::GeomBox ( )

Constructor. Initializes class values

References init().

◆ GeomBox() [2/2]

GeomBox::GeomBox ( float  rx,
float  ry,
float  rwidth,
float  rheight 
)

Constructor. Sets values

Parameters
rxUpper left X value
ryUpper left Y value
rwidthWidth of box
rheigthHeight of box

References set().

Member Function Documentation

◆ init()

int GeomBox::init ( )

Initializes class values

References height, width, x, and y.

Referenced by GeomBox().

◆ print()

int GeomBox::print ( )

Prints the object values

References height, width, x, and y.

◆ set()

int GeomBox::set ( float  rx,
float  ry,
float  rwidth,
float  rheight 
)

Sets values

Parameters
rxUpper left X value
ryUpper left Y value
rwidthWidth of box
rheigthHeight of box

References height, width, x, and y.

Referenced by WXP::ImagePlot::drawImage(), and GeomBox().

Member Data Documentation

◆ height

float WXP::GeomBox::height

Height of box

Referenced by WXP::ImageMath::clip(), init(), print(), and set().

◆ width

float WXP::GeomBox::width

Width of box

Referenced by WXP::ImageMath::clip(), init(), print(), and set().

◆ x

float WXP::GeomBox::x

X location

Referenced by WXP::ImageMath::clip(), init(), print(), and set().

◆ y

float WXP::GeomBox::y

Y location

Referenced by WXP::ImageMath::clip(), init(), print(), and set().


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