gmsh-TingyuanDoc  0.1
An Open-Source Timing-driven Analytical Mixed-size FPGA Placer
drawGraph2d.cpp File Reference
#include <algorithm>
#include "drawContext.h"
#include "PView.h"
#include "PViewOptions.h"
#include "PViewData.h"
#include "gl2ps.h"
#include "Context.h"
#include "Numeric.h"
Include dependency graph for drawGraph2d.cpp:

Go to the source code of this file.

Functions

static bool getGraphData (PView *p, std::vector< double > &x, double &xmin, double &xmax, std::vector< std::vector< double > > &y, double &ymin, double &ymax)
 
static void drawGraphAxes (drawContext *ctx, PView *p, double xleft, double ytop, double width, double height, double xmin, double xmax, double tic, int overlay, bool inModelCoordinates)
 
static unsigned int getTagForGraph2dDataPoint (const SPoint2 &p)
 
SPoint2 getGraph2dDataPointForTag (unsigned int tag)
 
static void addGraphPoint (drawContext *ctx, PView *p, double xleft, double ytop, double width, double height, double x, double y, double xmin, double xmax, double ymin, double ymax, bool numeric, bool singlePoint, bool inModelCoordinates)
 
static void drawGraphCurves (drawContext *ctx, PView *p, double xleft, double ytop, double width, double height, std::vector< double > &x, double xmin, double xmax, std::vector< std::vector< double > > &y, bool inModelCoordinates)
 
static void drawGraph (drawContext *ctx, PView *p, double xleft, double ytop, double width, double height, double tic, int overlay=0, bool inModelCoordinates=false)
 

Variables

static std::map< SPoint2, unsigned int > tags
 
static std::map< unsigned int, SPoint2tags_rev
 

Function Documentation

◆ addGraphPoint()

static void addGraphPoint ( drawContext ctx,
PView p,
double  xleft,
double  ytop,
double  width,
double  height,
double  x,
double  y,
double  xmin,
double  xmax,
double  ymin,
double  ymax,
bool  numeric,
bool  singlePoint,
bool  inModelCoordinates 
)
static

Definition at line 415 of file drawGraph2d.cpp.

Referenced by drawGraphCurves().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ drawGraph()

static void drawGraph ( drawContext ctx,
PView p,
double  xleft,
double  ytop,
double  width,
double  height,
double  tic,
int  overlay = 0,
bool  inModelCoordinates = false 
)
static

Definition at line 533 of file drawGraph2d.cpp.

Referenced by drawContext::drawGraph2d().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ drawGraphAxes()

static void drawGraphAxes ( drawContext ctx,
PView p,
double  xleft,
double  ytop,
double  width,
double  height,
double  xmin,
double  xmax,
double  tic,
int  overlay,
bool  inModelCoordinates 
)
static

Definition at line 206 of file drawGraph2d.cpp.

Referenced by drawGraph().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ drawGraphCurves()

static void drawGraphCurves ( drawContext ctx,
PView p,
double  xleft,
double  ytop,
double  width,
double  height,
std::vector< double > &  x,
double  xmin,
double  xmax,
std::vector< std::vector< double > > &  y,
bool  inModelCoordinates 
)
static

Definition at line 473 of file drawGraph2d.cpp.

Referenced by drawGraph().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getGraph2dDataPointForTag()

SPoint2 getGraph2dDataPointForTag ( unsigned int  tag)

Definition at line 413 of file drawGraph2d.cpp.

Referenced by drawContext::select().

Here is the caller graph for this function:

◆ getGraphData()

static bool getGraphData ( PView p,
std::vector< double > &  x,
double &  xmin,
double &  xmax,
std::vector< std::vector< double > > &  y,
double &  ymin,
double &  ymax 
)
static

Definition at line 60 of file drawGraph2d.cpp.

Referenced by drawGraph().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getTagForGraph2dDataPoint()

static unsigned int getTagForGraph2dDataPoint ( const SPoint2 p)
static

Definition at line 403 of file drawGraph2d.cpp.

Referenced by addGraphPoint().

Here is the caller graph for this function:

Variable Documentation

◆ tags

◆ tags_rev

std::map<unsigned int, SPoint2> tags_rev
static

Definition at line 401 of file drawGraph2d.cpp.

Referenced by getGraph2dDataPointForTag(), and getTagForGraph2dDataPoint().