#include <Simple_images_rectangles.h>
Inherits NSPipeline::TUnitRetType_images_rectangles.
Inheritance diagram for NSSimpleUnit::TUnitRetType_images_rectangles_implemented:
Public Member Functions | |
virtual EnumUnitType | GetType (void) const |
Vrati typ tridy. | |
virtual void | Release (void) |
Snizeni poctu referenci. | |
virtual DWORD | GetImageCount (void) |
Virtualni metoda vracejici pocet obrazku ulozenych v tomto vysledku. | |
virtual const TImage * | GetImage (DWORD index) |
Vrati ukazatel na obrazek ulozeny na zadanem indexu. | |
virtual DWORD | GetRectangleCount (void) |
Virtualni metoda vracejici pocet obdelniku ulozenych v tomto vysledku. | |
virtual TRT_Rect | GetRectangle (DWORD index) |
Vrati ukazatel na zadany obdelnik. | |
void | InsertImage (TImageRGBResult *imageRes) |
Prida dalsi obrazek do vysledku. | |
void | InsertRectangle (const TRT_Rect &rect) |
Prida dalsi obdelnik do vysledku. | |
Private Member Functions | |
TUnitRetType_images_rectangles_implemented (void) | |
Soukromy konstruktor. | |
~TUnitRetType_images_rectangles_implemented (void) | |
Soukromy destruktor. | |
void | AddRefs (void) |
Pridani reference na objekt. | |
void | PreReset (void) |
Tato metoda je volana pred vracenim objektu zpatky do manazeru a zajistuje, ze vsechny reference na obrazky budou uvolneny. | |
void | Reset (void) |
Tato metoda inicializuje zadany objekt do podoby po vytvoreni. | |
void | SetParent (TSimpleUnitProcessingInterface_images_rectangles *parent) |
Nastaveni rodicovske jednotky pro tento objekt. | |
TUnitRetType_images_rectangles_implemented (const TUnitRetType_images_rectangles_implemented &orig) | |
falesny kopirovaci konstruktor | |
void | operator= (const TUnitRetType_images_rectangles_implemented &orig) |
falesny prirazovaci operator | |
Private Attributes | |
friend | TManager< TUnitRetType_images_rectangles_implemented > |
friend | TSimpleUnitProcessingInterface_images_rectangles |
DWORD | m_refs |
pocet referenci na objekt | |
vector< TImageRGBResult * > | m_values |
vlastni ulozene obrazky kazdy udrzuje referenci na objekt | |
vector< TRT_Rect > | m_values_r |
pole obdelniku s velikosti nezavislou na poctu obrazku v poli m_values | |
TCriticalSection | m_cs |
synchronizace pro pocitani referenci | |
TSimpleUnitProcessingInterface_images_rectangles * | m_parent |
jednotka kde byl objekt vytvoren a kam ma byt vracen |
Jedina pouzitelna metoda pro vypocetni jednotku je metoda InsertImage(), ktera vlozi novy obrazek do vysledku, a InsertRectangle(), ktera vlozi novy obdelnik do vysledku.
Ostatni nevirtualni metody jsou nepodstatne.
JE VZDY NUTNE REIMPLEMENTOVAT VSECHNY VIRTUALNI METODY Z BAZOVE TRIDY!!!
Definition at line 58 of file Simple_images_rectangles.h.
|
Soukromy konstruktor. Vytvori objekt s jednou referenci a zadnym obrazkem uvnitr. METODA JE VOLANA Z MANAGERU TECHTO OBJEKTU VE VYPOCETNI JEDNOTCE DEFINOVANE NIZE. Definition at line 176 of file Simple_images_rectangles.h. References m_refs. |
|
Soukromy destruktor. METODA JE VOLANA Z MANAGERU TECHTO OBJEKTU VE VYPOCETNI JEDNOTCE DEFINOVANE NIZE. Definition at line 186 of file Simple_images_rectangles.h. References m_values. |
|
falesny kopirovaci konstruktor
|
|
Pridani reference na objekt.
Definition at line 229 of file Simple_images_rectangles.h. References NSPipeline::TCriticalSection::Enter(), NSPipeline::TCriticalSection::Leave(), m_cs, and m_refs. Referenced by NSSimpleUnit::TSimpleUnitProcessingInterface_images_rectangles::GetResult(). Here is the call graph for this function: ![]() |
|
Vrati ukazatel na obrazek ulozeny na zadanem indexu. Pokud je index mimo rozsah pak vraci NULL.
Implements NSPipeline::TUnitRetType_images_rectangles. Definition at line 131 of file Simple_images_rectangles.h. References m_values. |
|
Virtualni metoda vracejici pocet obrazku ulozenych v tomto vysledku.
Implements NSPipeline::TUnitRetType_images_rectangles. Definition at line 119 of file Simple_images_rectangles.h. References m_values. |
|
Vrati ukazatel na zadany obdelnik. Pokud je index mimo rozsah pak vraci defaultni obdelnik.
Implements NSPipeline::TUnitRetType_images_rectangles. Definition at line 157 of file Simple_images_rectangles.h. References m_values_r. |
|
Virtualni metoda vracejici pocet obdelniku ulozenych v tomto vysledku.
Implements NSPipeline::TUnitRetType_images_rectangles. Definition at line 146 of file Simple_images_rectangles.h. References m_values_r. |
|
Vrati typ tridy.
Implements NSPipeline::TUnitRetType_images_rectangles. Definition at line 111 of file Simple_images_rectangles.h. References NSPipeline::ENUM_UNITTYPE_IMAGES_RGB_RECTANGLES. |
|
Prida dalsi obrazek do vysledku. Metoda zvysi pocet referenci na obrazek. Tato metoda by mela byt pouzita v ramci tridy TSimpleUnitProcessingInterface_images_rectangles v metode ProcessFrame, kdy objekt jeste neni zarazen do seznamu vysledku a tedy nad nim pracuje pouze jedno vlakno.
Definition at line 209 of file Simple_images_rectangles.h. References NSSimpleUnit::TImageRGBResult::AddRefs(), and m_values. Here is the call graph for this function: ![]() |
|
Prida dalsi obdelnik do vysledku.
Definition at line 221 of file Simple_images_rectangles.h. References m_values_r. |
|
falesny prirazovaci operator
|
|
Tato metoda je volana pred vracenim objektu zpatky do manazeru a zajistuje, ze vsechny reference na obrazky budou uvolneny. Metoda by mela byt volana pouze z jednoho vlakna a tedy neni nutna synchronizace. Definition at line 242 of file Simple_images_rectangles.h. References m_values. Referenced by NSSimpleUnit::TSimpleUnitProcessingInterface_images_rectangles::ReturnObject(). |
|
Snizeni poctu referenci. Jakmile pocet referenci dosahne 0 je objekt okamzite smazan, resp. vracen rodicovske jednotce. Implements NSPipeline::TUnitRetType_images_rectangles. Definition at line 35 of file Simple_images_rectangles.cpp. References NSPipeline::TCriticalSection::Enter(), NSPipeline::TCriticalSection::Leave(), m_cs, m_parent, m_refs, and NSSimpleUnit::TSimpleUnitProcessingInterface_images_rectangles::ReturnObject(). Here is the call graph for this function: ![]() |
|
Tato metoda inicializuje zadany objekt do podoby po vytvoreni. Metoda by mela byt volana v manageru objektu pokud byl uz objekt drive pouzit. To znamena, ze objekt je pri zavolani drzen pouze jednim vlaknem a tedy neni potreba synchronizace. Definition at line 262 of file Simple_images_rectangles.h. References m_refs, and m_values. Referenced by NSSimpleUnit::TSimpleUnitProcessingInterface_images_rectangles::GetObject(). |
|
Nastaveni rodicovske jednotky pro tento objekt. Metoda je volana v manageru objektu zadane jednotky a tedy k ni pristupuje pouze jedno vlakno.
Definition at line 289 of file Simple_images_rectangles.h. References m_parent. Referenced by NSSimpleUnit::TSimpleUnitProcessingInterface_images_rectangles::GetObject(). |
|
synchronizace pro pocitani referenci
Definition at line 102 of file Simple_images_rectangles.h. |
|
jednotka kde byl objekt vytvoren a kam ma byt vracen
Definition at line 104 of file Simple_images_rectangles.h. Referenced by Release(), and SetParent(). |
|
pocet referenci na objekt
Definition at line 96 of file Simple_images_rectangles.h. Referenced by AddRefs(), Release(), Reset(), and TUnitRetType_images_rectangles_implemented(). |
|
vlastni ulozene obrazky kazdy udrzuje referenci na objekt
Definition at line 97 of file Simple_images_rectangles.h. Referenced by GetImage(), GetImageCount(), InsertImage(), PreReset(), Reset(), and ~TUnitRetType_images_rectangles_implemented(). |
|
pole obdelniku s velikosti nezavislou na poctu obrazku v poli m_values
Definition at line 99 of file Simple_images_rectangles.h. Referenced by GetRectangle(), GetRectangleCount(), and InsertRectangle(). |
|
Definition at line 60 of file Simple_images_rectangles.h. |
|
Definition at line 61 of file Simple_images_rectangles.h. |