Geant4  v4-10.4-release
 모두 클래스 네임스페이스들 파일들 함수 변수 타입정의 열거형 타입 열거형 멤버 Friends 매크로 그룹들 페이지들
Public 멤버 함수 | 모든 멤버 목록
HEPREP::HepRepInstance 클래스 참조abstract

#include <HepRepInstance.h>

HEPREP::HepRepInstance에 대한 상속 다이어그램 :
HEPREP::HepRepAttribute cheprep::DefaultHepRepInstance

Public 멤버 함수

virtual ~HepRepInstance ()
 Destructor. 더 자세히 ...
 
virtual void overlay (HepRepInstance *instance)=0
 
virtual void addInstance (HepRepInstance *instance)=0
 
virtual void removeInstance (HepRepInstance *instance)=0
 
virtual std::vector
< HepRepInstance * > 
getInstances ()=0
 
virtual HepRepTypegetType ()=0
 
virtual void addPoint (HepRepPoint *point)=0
 
virtual std::vector
< HepRepPoint * > 
getPoints ()=0
 
virtual HepRepInstancegetSuperInstance ()=0
 
virtual HepRepInstancecopy (HepRepTypeTree *typeTree, HepRepInstance *parent, HepRepSelectFilter *filter=NULL)=0
 
virtual HepRepInstancecopy (HepRepTypeTree *typeTree, HepRepInstanceTree *parent, HepRepSelectFilter *filter=NULL)=0
 
virtual void addAttValue (HepRepAttValue *attValue)=0
 
virtual void addAttValue (std::string key, char *value, int showLabel=HepRepConstants::SHOW_NONE)=0
 
virtual void addAttValue (std::string key, std::string value, int showLabel=HepRepConstants::SHOW_NONE)=0
 
virtual void addAttValue (std::string key, int64 value, int showLabel=HepRepConstants::SHOW_NONE)=0
 
virtual void addAttValue (std::string key, int value, int showLabel=HepRepConstants::SHOW_NONE)=0
 
virtual void addAttValue (std::string key, double value, int showLabel=HepRepConstants::SHOW_NONE)=0
 
virtual void addAttValue (std::string key, bool value, int showLabel=HepRepConstants::SHOW_NONE)=0
 
virtual void addAttValue (std::string key, std::vector< double > value, int showLabel=HepRepConstants::SHOW_NONE)=0
 
virtual void addAttValue (std::string key, double red, double green, double blue, double alpha=1.0, int showLabel=HepRepConstants::SHOW_NONE)=0
 
virtual HepRepAttValueremoveAttValue (std::string key)=0
 
virtual HepRepAttValuegetAttValue (std::string name)=0
 
virtual std::set
< HepRepAttValue * > 
getAttValuesFromNode ()=0
 
virtual HepRepAttValuegetAttValueFromNode (std::string lowerCaseName)=0
 

상세한 설명

HepRepInstance interface.

작성자
Mark Donszelmann

HepRepInstance.h 파일의 29 번째 라인에서 정의되었습니다.

생성자 & 소멸자 문서화

virtual HEPREP::HepRepInstance::~HepRepInstance ( )
inlinevirtual

Destructor.

HepRepInstance.h 파일의 33 번째 라인에서 정의되었습니다.

멤버 함수 문서화

virtual void HEPREP::HepRepAttribute::addAttValue ( HepRepAttValue attValue)
pure virtualinherited
virtual void HEPREP::HepRepAttribute::addAttValue ( std::string  key,
char *  value,
int  showLabel = HepRepConstants::SHOW_NONE 
)
pure virtualinherited

Adds a char* attValue as a String. This call should be mapped to addAttValue(std::string, std::string, int); and necessary because C++ converts char* into bool and would thus call addAttValue(std::string, bool, int) for a call such as addAttValue("drawAs", "Cylinder", 0);

매개변수
keyname of attValue
valuevalue of attValue
showLabelshow this as label

cheprep::DefaultHepRepAttribute에서 구현되었습니다.

virtual void HEPREP::HepRepAttribute::addAttValue ( std::string  key,
std::string  value,
int  showLabel = HepRepConstants::SHOW_NONE 
)
pure virtualinherited

Adds an attValue.

매개변수
keyname of attValue
valuevalue of attValue
showLabelshow this as label

cheprep::DefaultHepRepAttribute에서 구현되었습니다.

virtual void HEPREP::HepRepAttribute::addAttValue ( std::string  key,
int64  value,
int  showLabel = HepRepConstants::SHOW_NONE 
)
pure virtualinherited

Adds an attValue.

매개변수
keyname of attValue
valuevalue of attValue
showLabelshow this as label

cheprep::DefaultHepRepAttribute에서 구현되었습니다.

virtual void HEPREP::HepRepAttribute::addAttValue ( std::string  key,
int  value,
int  showLabel = HepRepConstants::SHOW_NONE 
)
pure virtualinherited

Adds an attValue.

매개변수
keyname of attValue
valuevalue of attValue
showLabelshow this as label

cheprep::DefaultHepRepAttribute에서 구현되었습니다.

virtual void HEPREP::HepRepAttribute::addAttValue ( std::string  key,
double  value,
int  showLabel = HepRepConstants::SHOW_NONE 
)
pure virtualinherited

Adds an attValue.

매개변수
keyname of attValue
valuevalue of attValue
showLabelshow this as label

cheprep::DefaultHepRepAttribute에서 구현되었습니다.

virtual void HEPREP::HepRepAttribute::addAttValue ( std::string  key,
bool  value,
int  showLabel = HepRepConstants::SHOW_NONE 
)
pure virtualinherited

Adds an attValue.

매개변수
keyname of attValue
valuevalue of attValue
showLabelshow this as label

cheprep::DefaultHepRepAttribute에서 구현되었습니다.

virtual void HEPREP::HepRepAttribute::addAttValue ( std::string  key,
std::vector< double >  value,
int  showLabel = HepRepConstants::SHOW_NONE 
)
pure virtualinherited

Adds a Color attValue.

매개변수
keyname of attValue
valuevalue of attValue
showLabelshow this as label

cheprep::DefaultHepRepAttribute에서 구현되었습니다.

virtual void HEPREP::HepRepAttribute::addAttValue ( std::string  key,
double  red,
double  green,
double  blue,
double  alpha = 1.0,
int  showLabel = HepRepConstants::SHOW_NONE 
)
pure virtualinherited

Adds a Color attValue.

매개변수
keyname of attValue
redcolor
greencolor
bluecolor
alphavalue
showLabelshow this as label

cheprep::DefaultHepRepAttribute에서 구현되었습니다.

virtual void HEPREP::HepRepInstance::addInstance ( HepRepInstance instance)
pure virtual

Adds an sub-instance to this instance.

매개변수
instancesub-instance.

cheprep::DefaultHepRepInstance에서 구현되었습니다.

다음에 의해서 참조됨 : cheprep::DefaultHepRepInstance::DefaultHepRepInstance().

virtual void HEPREP::HepRepInstance::addPoint ( HepRepPoint point)
pure virtual

Adds a point to this instance.

매개변수
pointto be added.

cheprep::DefaultHepRepInstance에서 구현되었습니다.

다음에 의해서 참조됨 : cheprep::DefaultHepRepPoint::DefaultHepRepPoint().

virtual HepRepInstance* HEPREP::HepRepInstance::copy ( HepRepTypeTree typeTree,
HepRepInstance parent,
HepRepSelectFilter filter = NULL 
)
pure virtual

Returns a deep copy of this instance.

매개변수
typeTreeneeded to find the associated type.
parentto which the copy is added.
filterrun on all instances before copying.
반환값
copy of this instance.

cheprep::DefaultHepRepInstance에서 구현되었습니다.

virtual HepRepInstance* HEPREP::HepRepInstance::copy ( HepRepTypeTree typeTree,
HepRepInstanceTree parent,
HepRepSelectFilter filter = NULL 
)
pure virtual

Returns a deep copy of this instance.

매개변수
typeTreeneeded to find the associated type.
parentto which the copy is added.
filterrun on all instances before copying.
반환값
copy of this instance.

cheprep::DefaultHepRepInstance에서 구현되었습니다.

virtual HepRepAttValue* HEPREP::HepRepAttribute::getAttValue ( std::string  name)
pure virtualinherited

Returns the attValue specified by name. This attValue is normally searched on the node itself and then on its type, moving up the typetree.

매개변수
nameof attribute value.
반환값
attribute value.

cheprep::DefaultHepRepInstance, cheprep::DefaultHepRepAttribute, cheprep::DefaultHepRepType, cheprep::DefaultHepRepDefinition, cheprep::DefaultHepRepPoint에서 구현되었습니다.

다음에 의해서 참조됨 : cheprep::DefaultHepRepPoint::getAttValue(), cheprep::DefaultHepRepInstance::getAttValue(), G4HepRepSceneHandler::setAttribute().

virtual HepRepAttValue* HEPREP::HepRepAttribute::getAttValueFromNode ( std::string  lowerCaseName)
pure virtualinherited

Returns a named attribute value from this node.

매개변수
lowerCaseNamename in all lowercase.
반환값
corresponding HepRepAttValue.

cheprep::DefaultHepRepAttribute에서 구현되었습니다.

다음에 의해서 참조됨 : cheprep::DefaultHepRepType::getAttValue(), G4HepRepSceneHandler::setAttribute(), cheprep::XMLHepRepWriter::write().

virtual std::set<HepRepAttValue *> HEPREP::HepRepAttribute::getAttValuesFromNode ( )
pure virtualinherited

Returns a collection of all attribute values from this node.

반환값
collection of HepRepAttValues.

cheprep::DefaultHepRepAttribute에서 구현되었습니다.

다음에 의해서 참조됨 : cheprep::XMLHepRepWriter::write().

virtual std::vector<HepRepInstance *> HEPREP::HepRepInstance::getInstances ( )
pure virtual

Returns a collection of all sub-instances this instance keeps.

반환값
collection of HepRepInstances.

cheprep::DefaultHepRepInstance에서 구현되었습니다.

다음에 의해서 참조됨 : cheprep::XMLHepRepWriter::write().

virtual std::vector<HepRepPoint *> HEPREP::HepRepInstance::getPoints ( )
pure virtual

Returns a collection of all points this instance keeps.

반환값
collection of HepRepPoints.

cheprep::DefaultHepRepInstance에서 구현되었습니다.

다음에 의해서 참조됨 : cheprep::XMLHepRepWriter::write().

virtual HepRepInstance* HEPREP::HepRepInstance::getSuperInstance ( )
pure virtual

Fills a double[3][n] array with the coordinates of all points, if none of the points have any attributes defined on them. The actual number of points filled is returned. In case the number of points is larger than n, or if any points have attributes, -1 is returned. One could then call getPoint().

참고
getPoints()
매개변수
xyza double[3][n] array to be filled with points.
반환값
number of points filled in xyz, or -1 in case of error or non-implementation.

ONLY in JAVA Returns true if this instance has a frame. Speedy access for iterator.

ONLY in JAVA Returns String layername. Speedy access for iterator.

ONLY in JAVA Returns the parent of this instance.

반환값
parent of instance, or null if top-level.

cheprep::DefaultHepRepInstance에서 구현되었습니다.

virtual HepRepType* HEPREP::HepRepInstance::getType ( )
pure virtual

Returns the associated type for this instance.

반환값
associated HepRepType.

cheprep::DefaultHepRepInstance에서 구현되었습니다.

다음에 의해서 참조됨 : G4HepRepSceneHandler::setAttribute(), cheprep::XMLHepRepWriter::write().

virtual void HEPREP::HepRepInstance::overlay ( HepRepInstance instance)
pure virtual

Overlays the instance on the current instance.

Attributes of the instance override or are added to the current instance. Sub-instances of the instance are added only if the current instance has no sub-instances. Points of the instance are added only if the current instance has no points.

cheprep::DefaultHepRepInstance에서 구현되었습니다.

virtual HepRepAttValue* HEPREP::HepRepAttribute::removeAttValue ( std::string  key)
pure virtualinherited

Remove the attvalue named by key.

매개변수
keyname of the attValue to be removed.
반환값
removed HepRepAttValue, or null if not removed.

cheprep::DefaultHepRepAttribute에서 구현되었습니다.

virtual void HEPREP::HepRepInstance::removeInstance ( HepRepInstance instance)
pure virtual

Removes a sub-instance from this instance.

매개변수
instancesub-instance.

cheprep::DefaultHepRepInstance에서 구현되었습니다.


이 클래스에 대한 문서화 페이지는 다음의 파일로부터 생성되었습니다.: