Chrysalis - Pattern
Toggle main menu visibility
Loading...
Searching...
No Matches
SegmentArgument.h
Go to the documentation of this file.
1
#ifndef CHRYSALIS_SEGMENTARGUMENT_H
2
#define CHRYSALIS_SEGMENTARGUMENT_H
3
4
#include "
arguments/VectorArgument.h
"
5
#include "
arguments/PatternPointArgument.h
"
6
10
namespace
Chrysalis
{
11
class
SegmentArgument
:
public
VectorArgument
{
12
PROVIDE_SERIALIZATION_ACCESS
(
SegmentArgument
)
13
public
:
14
explicit
SegmentArgument
(
const
args::point
*
origin
,
const
args::point
*
destination
);
15
~SegmentArgument
()
override
;
16
17
const
args::point
*
destination
()
const
;
18
19
explicit
operator
CG::Segment
()
const override
;
20
private
:
22
const
args::point
* destination_;
23
};
24
SERIALIZE_DERIVED_CONSTRUCTION
(
SegmentArgument
,
VectorArgument
, origin_, destination_)
25
namespace
args
{
26
using
segment
=
SegmentArgument
;
27
}
28
}
30
31
#endif
//CHRYSALIS_SEGMENTARGUMENT_H
PatternPointArgument.h
VectorArgument.h
Chrysalis::LineArgument::origin
const args::point * origin() const
Definition
LineArgument.cpp:25
Chrysalis::SegmentArgument
Definition
SegmentArgument.h:11
Chrysalis::SegmentArgument::~SegmentArgument
~SegmentArgument() override
Definition
SegmentArgument.cpp:8
Chrysalis::SegmentArgument::SegmentArgument
SegmentArgument(const args::point *origin, const args::point *destination)
Definition
SegmentArgument.cpp:5
Chrysalis::SegmentArgument::destination
const args::point * destination() const
Definition
SegmentArgument.cpp:12
Chrysalis::VectorArgument
Definition
VectorArgument.h:12
Chrysalis::VectorArgument::VectorArgument
VectorArgument(const args::point *origin, const args::point *destination)
Definition
VectorArgument.cpp:15
Chrysalis::CG::Segment
CGAL::Segment_2< LinearKernel > Segment
Definition
CGAL.h:26
Chrysalis::args
Definition
Argument.h:26
Chrysalis::args::point
BasePointArgument point
Definition
BasePointArgument.h:26
Chrysalis::args::segment
SegmentArgument segment
Definition
SegmentArgument.h:26
Chrysalis
Definition
Argument.h:9
PROVIDE_SERIALIZATION_ACCESS
#define PROVIDE_SERIALIZATION_ACCESS(Class)
Definition
serialization.h:29
SERIALIZE_DERIVED_CONSTRUCTION
#define SERIALIZE_DERIVED_CONSTRUCTION(Class, Base,...)
Definition
serialization.h:124
pattern
include
arguments
SegmentArgument.h
Generated by
1.17.0