cisst-saw
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
svlSampleBlobs.h
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /* ex: set filetype=cpp softtabstop=4 shiftwidth=4 tabstop=4 cindent expandtab: */
3 
4 /*
5 
6  Author(s): Balazs Vagvolgyi
7  Created on: 2011
8 
9  (C) Copyright 2006-2011 Johns Hopkins University (JHU), All Rights
10  Reserved.
11 
12 --- begin cisst license - do not edit ---
13 
14 This software is provided "as is" under an open source license, with
15 no warranty. The complete license can be found in license.txt and
16 http://www.cisst.org/cisst/license.txt.
17 
18 --- end cisst license ---
19 
20 */
21 
22 #ifndef _svlSampleBlobs_h
23 #define _svlSampleBlobs_h
24 
26 
27 // Always include last!
29 
30 
32 {
34 
35 public:
37  svlSampleBlobs(const svlSampleBlobs & other);
38  svlSampleBlobs & operator= (const svlSampleBlobs & other);
39 
40  svlSample* GetNewInstance() const;
41  svlStreamType GetType() const;
42  int SetSize(const svlSample* sample);
43  int SetSize(const svlSample& sample);
44  int CopyOf(const svlSample* sample);
45  int CopyOf(const svlSample& sample);
46  bool IsInitialized() const;
47  unsigned char* GetUCharPointer();
48  const unsigned char* GetUCharPointer() const;
49  unsigned int GetDataSize() const;
50  void SerializeRaw(std::ostream & outputStream) const;
51  void DeSerializeRaw(std::istream & inputStream);
52 
53  unsigned char* GetUCharPointer(const unsigned int videochannel);
54  const unsigned char* GetUCharPointer(const unsigned int videochannel) const;
55  unsigned int GetDataSize(const unsigned int videochannel) const;
56 
57  void SetChannelCount(const unsigned int channelcount);
58  unsigned int GetChannelCount() const;
59  int SetBufferSize(const unsigned int size, const unsigned int videochannel = 0);
60  unsigned int GetBufferSize(const unsigned int videochannel = 0) const;
61  int SetBufferUsed(const unsigned int used, const unsigned int videochannel = 0);
62  unsigned int GetBufferUsed(const unsigned int videochannel = 0) const;
63  int SetBlob(const unsigned int blob_id, const svlBlob& blob, const unsigned int videochannel = 0);
64  int GetBlob(const unsigned int blob_id, svlBlob& blob, const unsigned int videochannel = 0) const;
65  svlBlob* GetBlobsPointer(const unsigned int videochannel = 0);
66  const svlBlob* GetBlobsPointer(const unsigned int videochannel = 0) const;
67 
68 protected:
71 };
72 
74 
75 #endif // _svlSampleBlobs_h
76 
#define CISST_EXPORT
Definition: cmnExportMacros.h:50
virtual svlSample * GetNewInstance() const =0
A vector object of dynamic size.
Definition: vctDynamicVector.h:127
svlStreamType
Definition: svlDefinitions.h:193
#define CMN_DECLARE_SERVICES_INSTANTIATION_EXPORT(className)
Definition: cmnClassRegisterMacros.h:209
Definition: svlSampleBlobs.h:31
virtual svlStreamType GetType() const =0
virtual int CopyOf(const svlSample *sample)=0
virtual unsigned char * GetUCharPointer()=0
vctDynamicVector< vctDynamicVector< svlBlob > > Blobs
Definition: svlSampleBlobs.h:69
virtual unsigned int GetDataSize() const =0
svlSample & operator=(const svlSample &other)
virtual void SerializeRaw(std::ostream &outputStream) const =0
virtual int SetSize(const svlSample *sample)=0
vctDynamicVector< unsigned int > BufferUsed
Definition: svlSampleBlobs.h:70
Definition: svlTypes.h:145
virtual void DeSerializeRaw(std::istream &inputStream)=0
Macros to export the symbols of cisstStereoVision (in a Dll).
#define CMN_DECLARE_SERVICES(hasDynamicCreation, lod)
Definition: cmnClassRegisterMacros.h:116
virtual bool IsInitialized() const
const int CMN_DYNAMIC_CREATION
Definition: cmnClassRegisterMacros.h:331
#define CMN_LOG_ALLOW_DEFAULT
Definition: cmnLogLoD.h:76
Definition: svlSample.h:31