homog2d library
Macros | Functions
homog2d_test_rtp_1.cpp File Reference

This program will demonstrate the pointer-based runtime polymorphism capabilities. Is included in test suite. More...

#include "../../homog2d.hpp"
#include "rtp_p.hpp"
Include dependency graph for homog2d_test_rtp_1.cpp:

Macros

#define HOMOG2D_ENABLE_PRTP
 

Functions

int main (int, char **argv)
 see homog2d_test_rtp_1.cpp More...
 

Detailed Description

This program will demonstrate the pointer-based runtime polymorphism capabilities. Is included in test suite.

Build and run with $ make test-rtp

Macro Definition Documentation

◆ HOMOG2D_ENABLE_PRTP

#define HOMOG2D_ENABLE_PRTP

Function Documentation

◆ main()

int main ( int  ,
char **  argv 
)

see homog2d_test_rtp_1.cpp

34 {
35  std::cout << "START " << argv[0] << '\n';
36 
37  auto vecpts = std::vector<Point2d>(
38  { {0,0},{3,2},{1,4} }
39  );
40 
42  do_prtp( vecpts, im );
43  im.write( "BUILD/dummy_rtp_1.svg" );
44 }
void do_prtp(const std::vector< h2d::Point2d > &vecpts, IM &im)
Pointer-based runtime polymorphism.
Definition: rtp_p.hpp:11
img::Image< img::SvgImage > im(300, 400)
Opaque data structure, will hold the image type, depending on back-end library. This type is the one ...
Definition: homog2d.hpp:712
Here is the call graph for this function: