AGXDynamics
2.35.0.2
Image.h
Go to the documentation of this file.
1
/*
2
Copyright 2007-2022. Algoryx Simulation AB.
3
4
All AGX source code, intellectual property, documentation, sample code,
5
tutorials, scene files and technical white papers, are copyrighted, proprietary
6
and confidential material of Algoryx Simulation AB. You may not download, read,
7
store, distribute, publish, copy or otherwise disseminate, use or expose this
8
material unless having a written signed agreement with Algoryx Simulation AB, or having been
9
advised so by Algoryx Simulation AB for a time limited evaluation, or having purchased a
10
valid commercial license from Algoryx Simulation AB.
11
12
Algoryx Simulation AB disclaims all responsibilities for loss or damage caused
13
from using this software, unless otherwise stated in written agreements with
14
Algoryx Simulation AB.
15
*/
16
17
#ifndef AGXIO_IMAGE_H
18
#define AGXIO_IMAGE_H
19
20
#include <
agx/agxPhysics_export.h
>
21
22
#include <
agx/Referenced.h
>
23
24
namespace
agxIO
25
{
26
27
28
AGX_DECLARE_POINTER_TYPES
(
Image
);
32
class
AGXPHYSICS_EXPORT
Image
:
public
agx::Referenced
33
{
34
public
:
35
37
enum
ImageDataMode
{
38
ROW_MAJOR
,
39
COLUMN_MAJOR
40
};
41
42
Image
();
43
47
unsigned
int
getWidth()
const
;
48
52
unsigned
int
getHeight()
const
;
53
57
unsigned
int
getChannels()
const
;
58
62
unsigned
char
* getData();
63
const
unsigned
char
* getData()
const
;
64
65
int
getImageDataMode()
const
;
66
70
void
setImage(
const
unsigned
int
& width,
const
unsigned
int
& height,
71
const
unsigned
int
& channels,
const
int
& mode,
unsigned
char
* data);
72
protected
:
73
74
unsigned
int
m_width
;
75
unsigned
int
m_height
;
76
unsigned
int
m_channels
;
77
78
unsigned
char
*
m_data
;
79
80
int
m_imageDataMode
;
81
82
virtual
~
Image
();
83
};
84
85
typedef
agx::ref_ptr<Image>
ImageRef
;
86
}
87
88
#endif
89
agxPhysics_export.h
Referenced.h
agxIO::Image::m_channels
unsigned int m_channels
Definition:
Image.h:76
agxIO::Image::m_height
unsigned int m_height
Definition:
Image.h:75
AGXPHYSICS_EXPORT
#define AGXPHYSICS_EXPORT
agxIO::Image::m_data
unsigned char * m_data
Definition:
Image.h:78
agx::ref_ptr< Image >
agxIO::Image::m_imageDataMode
int m_imageDataMode
Definition:
Image.h:80
agxIO::Image::ROW_MAJOR
@ ROW_MAJOR
Pixel data is stored by row.
Definition:
Image.h:38
agxIO::Image
Class to represent Images.
Definition:
Image.h:32
agxIO::Image::ImageDataMode
ImageDataMode
Specify row/column mode.
Definition:
Image.h:37
agxIO::ImageRef
agx::ref_ptr< Image > ImageRef
Definition:
Image.h:28
agx::Referenced
Base class providing referencing counted objects.
Definition:
Referenced.h:113
AGX_DECLARE_POINTER_TYPES
#define AGX_DECLARE_POINTER_TYPES(type)
Definition:
Referenced.h:248
agxIO::Image::m_width
unsigned int m_width
Definition:
Image.h:74
agxIO
The agxIO namespace contains classes for reading, writing and finding files.
Definition:
Material.h:41
include
agxIO
Image.h
Generated on Mon Jan 30 2023 15:44:13 for AGXDynamics by
1.8.17