Open Inventor Release 2023.2.3
 
Loading...
Searching...
No Matches
SbDiscreteLineProfile.h
Go to the documentation of this file.
1/*=======================================================================
2 *** THE CONTENT OF THIS WORK IS PROPRIETARY TO FEI S.A.S, (FEI S.A.S.), ***
3 *** AND IS DISTRIBUTED UNDER A LICENSE AGREEMENT. ***
4 *** ***
5 *** REPRODUCTION, DISCLOSURE, OR USE, IN WHOLE OR IN PART, OTHER THAN AS ***
6 *** SPECIFIED IN THE LICENSE ARE NOT TO BE UNDERTAKEN EXCEPT WITH PRIOR ***
7 *** WRITTEN AUTHORIZATION OF FEI S.A.S. ***
8 *** ***
9 *** RESTRICTED RIGHTS LEGEND ***
10 *** USE, DUPLICATION, OR DISCLOSURE BY THE GOVERNMENT OF THE CONTENT OF THIS ***
11 *** WORK OR RELATED DOCUMENTATION IS SUBJECT TO RESTRICTIONS AS SET FORTH IN ***
12 *** SUBPARAGRAPH (C)(1) OF THE COMMERCIAL COMPUTER SOFTWARE RESTRICTED RIGHT ***
13 *** CLAUSE AT FAR 52.227-19 OR SUBPARAGRAPH (C)(1)(II) OF THE RIGHTS IN ***
14 *** TECHNICAL DATA AND COMPUTER SOFTWARE CLAUSE AT DFARS 52.227-7013. ***
15 *** ***
16 *** COPYRIGHT (C) 1996-2024 BY FEI S.A.S, ***
17 *** BORDEAUX, FRANCE ***
18 *** ALL RIGHTS RESERVED ***
19**=======================================================================*/
20/*=======================================================================
21** Author : Martial Papillon (mar 2016)
22**=======================================================================*/
23
24#ifndef _SB_LINE_PROFILE_H_
25#define _SB_LINE_PROFILE_H_
26
27#include <ImageViz/SoImageViz.h>
28#include <Inventor/SbVec.h>
29#include <Inventor/SbDataType.h>
31class SoDEPRECATED SbDiscreteLineProfile
45{
46public:
48
59 // @}
60
65
69 size_t getLength() const;
70
80 const double& getValue( int index, int component = 0 ) const;
81
86 const double* getValues() const;
87
94 const SbVec4i32& getPosition( int index ) const;
95
100
105
117 const double& operator[]( int i ) const ;
118
119private:
120 // Internal method to extract the line profile
121 void init( SbVec4i32 p1, SbVec4i32 p2, SoImageDataAdapter* image );
123 std::vector<double> m_values;
124 std::vector<SbVec4i32> m_positions;
125 int m_nbComponents;
126};
127
128#endif
static void init()
<a href="IconLegend.html"><img src="extIP.gif" alt="ImageViz" border="0"></a> Profile line extractor
const double & operator[](int i) const
Accessor operator.
const double & getValue(int index, int component=0) const
Returns the value along the line at specified displacement relatively to first point.
const SbVec4i32 & getFirstPosition() const
Returns the first point.
SbDiscreteLineProfile(SbVec4i32 p1, SbVec4i32 p2, SoImageDataAdapter *image)
size_t getLength() const
Returns the length of extracted data (i.e.
const SbVec4i32 & getLastPosition() const
Returns the last point.
SbDiscreteLineProfile(SbVec3i32 p1, SbVec3i32 p2, SoImageDataAdapter *image)
const SbVec4i32 & getPosition(int index) const
Returns the position along the line at specified displacement relatively to first point.
const double * getValues() const
Returns the values buffer.
SbDiscreteLineProfile(SbVec2i32 p1, SbVec2i32 p2, SoImageDataAdapter *image)
Constructor defining the profile line on the image.
~SbDiscreteLineProfile()
Destructor.
2D vector class.
Definition SbVec.h:517
3D vector class.
Definition SbVec.h:1517
4D vector class.
Definition SbVec.h:2639
<a href="IconLegend.html"><img src="extIP.gif" alt="ImageViz" border="0"></a> Abstract base class fo...