00001
00049 #define _EXPORT_CCL_
00050
00051 #include "CigiBaseViewDef.h"
00052 #include "CigiExceptions.h"
00053
00054
00055
00056
00057
00058
00059
00060
00061
00062
00063 CigiBaseViewDef::CigiBaseViewDef()
00064 {
00065
00066 }
00067
00068
00069
00070
00071
00072
00073 CigiBaseViewDef::~CigiBaseViewDef()
00074 {
00075
00076 }
00077
00078
00079
00080
00081
00082
00083
00084
00085
00086
00087 int CigiBaseViewDef::GetCnvt(CigiVersionID &CnvtVersion,
00088 CigiCnvtInfoType::Type &CnvtInfo)
00089 {
00090 CnvtInfo.ProcID = CigiProcessType::ProcStd;
00091
00092
00093 if(CnvtVersion.CigiMajorVersion < 3)
00094 CnvtInfo.CnvtPacketID = CIGI_VIEW_DEF_PACKET_ID_V2;
00095 else
00096 CnvtInfo.CnvtPacketID = CIGI_VIEW_DEF_PACKET_ID_V3;
00097
00098 return(CIGI_SUCCESS);
00099 }
00100
00101
00102
00103
00104
00105
00106
00107
00108
00109
00110 int CigiBaseViewDef::SetMirrorMode(const MirrorModeGrp MirrorModeIn, bool bndchk)
00111 {
00112
00113 #ifndef CIGI_NO_BND_CHK
00114 if(bndchk && ((MirrorModeIn < 0)||(MirrorModeIn > 3)))
00115 {
00116 #ifndef CIGI_NO_EXCEPT
00117 throw CigiValueOutOfRangeException("MirrorMode",(MirrorModeGrp)MirrorModeIn,0,3);
00118 #endif
00119 return(CIGI_ERROR_VALUE_OUT_OF_RANGE);
00120 }
00121 #endif
00122
00123 MirrorMode = MirrorModeIn;
00124 return(CIGI_SUCCESS);
00125
00126 }
00127
00128
00129
00130
00131
00132 int CigiBaseViewDef::SetPixelReplicateMode(const PixelReplicateModeGrp PixelReplicateModeIn, bool bndchk)
00133 {
00134
00135 #ifndef CIGI_NO_BND_CHK
00136 if(bndchk && ((PixelReplicateModeIn < 0)||(PixelReplicateModeIn > 7)))
00137 {
00138 #ifndef CIGI_NO_EXCEPT
00139 throw CigiValueOutOfRangeException("PixelReplicateMode",(PixelReplicateModeGrp)PixelReplicateModeIn,0,7);
00140 #endif
00141 return(CIGI_ERROR_VALUE_OUT_OF_RANGE);
00142 }
00143 #endif
00144
00145 PixelReplicateMode = PixelReplicateModeIn;
00146 return(CIGI_SUCCESS);
00147
00148 }
00149
00150
00151
00152
00153
00154 int CigiBaseViewDef::SetViewType(const Cigi_uint8 ViewTypeIn, bool bndchk)
00155 {
00156
00157 #ifndef CIGI_NO_BND_CHK
00158 if(bndchk && ((ViewTypeIn < 0)||(ViewTypeIn > 7)))
00159 {
00160 #ifndef CIGI_NO_EXCEPT
00161 throw CigiValueOutOfRangeException("ViewType",(Cigi_uint8)ViewTypeIn,0,7);
00162 #endif
00163 return(CIGI_ERROR_VALUE_OUT_OF_RANGE);
00164 }
00165 #endif
00166
00167 ViewType = ViewTypeIn;
00168 return(CIGI_SUCCESS);
00169
00170 }
00171
00172