|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.dcm4che2.hp.HPSelectorFactory
public class HPSelectorFactory
Field Summary | |
---|---|
static int |
FRAME_INDEX
Selector Value Number constant for indicating that the frame number shall be used for indexing the value of the Selector Attribute for filtering. |
Constructor Summary | |
---|---|
HPSelectorFactory()
|
Method Summary | |
---|---|
static HPSelector |
addFunctionalGroupPointer(java.lang.String privCreator,
int tag,
HPSelector selector)
Decorate Image Set Filter or Display Set Filter with Functional Group Pointer, defining the Selector Attribute as nested in a Functional Group Sequence. |
static HPSelector |
addSequencePointer(java.lang.String privCreator,
int tag,
HPSelector selector)
Decorate Image Set Filter or Display Set Filter with Selector Sequence Pointer, defining the Selector Attribute as nested in a Sequence. |
static HPSelector |
createAttributePresenceSelector(java.lang.String privateCreator,
int tag,
java.lang.String filter)
Create Display Set Filter with Filter-by Attribute Presence. |
static HPSelector |
createAttributeValueSelector(java.lang.String privateCreator,
int tag,
int valueNumber,
double[] values,
FilterOp filterOp)
Create Display Set Filter with double Selector Attribute
Values. |
static HPSelector |
createAttributeValueSelector(java.lang.String privateCreator,
int tag,
int valueNumber,
VR vr,
float[] values,
FilterOp filterOp)
Create Display Set Filter with float Selector Attribute
Values. |
static HPSelector |
createAttributeValueSelector(java.lang.String privateCreator,
int tag,
int valueNumber,
VR vr,
int[] values,
FilterOp filterOp)
Create Display Set Filter with int Selector Attribute
Values. |
static HPSelector |
createAttributeValueSelector(java.lang.String privateCreator,
int tag,
int valueNumber,
VR vr,
java.lang.String[] values,
FilterOp filterOp)
Create Display Set Filter with String Selector Attribute Values. |
static HPSelector |
createAttributeValueSelector(java.lang.String usageFlag,
java.lang.String privateCreator,
int tag,
int valueNumber,
double[] values)
Create Image Set Selector with double Selector Attribute
Values. |
static HPSelector |
createAttributeValueSelector(java.lang.String usageFlag,
java.lang.String privateCreator,
int tag,
int valueNumber,
VR vr,
float[] values)
Create Image Set Selector with float Selector Attribute
Values. |
static HPSelector |
createAttributeValueSelector(java.lang.String usageFlag,
java.lang.String privateCreator,
int tag,
int valueNumber,
VR vr,
int[] values)
Create Image Set Selector with int Selector Attribute
Values. |
static HPSelector |
createAttributeValueSelector(java.lang.String usageFlag,
java.lang.String privateCreator,
int tag,
int valueNumber,
VR vr,
int[] values,
FilterOp filterOp)
Create Display Set Filter with int Selector Attribute
Values and specified Image Set Selector Usage Flag (0072,0024). |
static HPSelector |
createAttributeValueSelector(java.lang.String usageFlag,
java.lang.String privateCreator,
int tag,
int valueNumber,
VR vr,
java.lang.String[] values)
Create Image Set Selector with String Selector Attribute Values. |
static HPSelector |
createCodeValueSelector(java.lang.String privateCreator,
int tag,
int valueNumber,
Code[] values,
FilterOp filterOp)
Create Display Set Filter with Code Selector Attribute Values. |
static HPSelector |
createCodeValueSelector(java.lang.String usageFlag,
java.lang.String privateCreator,
int tag,
int valueNumber,
Code[] values)
Create Image Set Selector with Code Selector Attribute Values. |
static HPSelector |
createDisplaySetFilter(DicomObject item)
Create Display Set Filter from Filter Operations Sequence (0072,0400) item. |
static HPSelector |
createImagePlaneSelector(ImagePlane[] imagePlanes)
Create Display Set Filter with Filter-by Category IMAGE_PLANE. |
static HPSelector |
createImageSetSelector(DicomObject item)
Create Image Set Selector from Image Set Selector Sequence (0072,0022) item. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int FRAME_INDEX
Constructor Detail |
---|
public HPSelectorFactory()
Method Detail |
---|
public static HPSelector createImageSetSelector(DicomObject item)
DicomObject
.
item
- DicomObject of Image Set Selector Sequence (0072,0022)
public static HPSelector createAttributeValueSelector(java.lang.String usageFlag, java.lang.String privateCreator, int tag, int valueNumber, VR vr, java.lang.String[] values)
String
Selector Attribute Values.
A new DicomObject
, representing the according
Image Set Selector Sequence (0072,0022) item is allocated and
initialized.
usageFlag
- CodeString.MATCH
or CodeString.NO_MATCH
privateCreator
- Selector Attribute Private Creator, if Selector Attribute is
contained by a Private Group, otherwise null
.tag
- Selector AttributevalueNumber
- Selector Value Numbervr
- Selector Attribute VR: CS, LO, LT, PN, SH, ST or UTvalues
- Selector Values
public static HPSelector createAttributeValueSelector(java.lang.String usageFlag, java.lang.String privateCreator, int tag, int valueNumber, VR vr, int[] values)
int
Selector Attribute
Values. A new DicomObject
, representing the
according Image Set Selector Sequence (0072,0022) item is allocated and
initialized.
usageFlag
- CodeString.MATCH
or CodeString.NO_MATCH
privateCreator
- Selector Attribute Private Creator, if Selector Attribute is
contained by a Private Group, otherwise null
.tag
- Selector AttributevalueNumber
- Selector Value Numbervr
- Selector Attribute VR: AT, IS, SL, SS, UL, or USvalues
- Selector Values
public static HPSelector createAttributeValueSelector(java.lang.String usageFlag, java.lang.String privateCreator, int tag, int valueNumber, VR vr, float[] values)
float
Selector Attribute
Values. A new DicomObject
, representing the
according Image Set Selector Sequence (0072,0022) item is allocated and
initialized.
usageFlag
- CodeString.MATCH
or CodeString.NO_MATCH
privateCreator
- Selector Attribute Private Creator, if Selector Attribute is
contained by a Private Group, otherwise null
.tag
- Selector AttributevalueNumber
- Selector Value Numbervr
- Selector Attribute VR: DS or FLvalues
- Selector Values
public static HPSelector createAttributeValueSelector(java.lang.String usageFlag, java.lang.String privateCreator, int tag, int valueNumber, double[] values)
double
Selector Attribute
Values. A new DicomObject
, representing the
according Image Set Selector Sequence (0072,0022) item is allocated and
initialized.
usageFlag
- CodeString.MATCH
or CodeString.NO_MATCH
privateCreator
- Selector Attribute Private Creator, if Selector Attribute is
contained by a Private Group, otherwise null
.tag
- Selector AttributevalueNumber
- Selector Value Numbervalues
- Selector Values
public static HPSelector createCodeValueSelector(java.lang.String usageFlag, java.lang.String privateCreator, int tag, int valueNumber, Code[] values)
Code
Selector Attribute Values. A
new DicomObject
, representing the according
Image Set Selector Sequence (0072,0022) item is allocated and
initialized.
usageFlag
- CodeString.MATCH
or CodeString.NO_MATCH
privateCreator
- Selector Attribute Private Creator, if Selector Attribute is
contained by a Private Group, otherwise null
.tag
- Selector AttributevalueNumber
- Selector Value Numbervalues
- Selector ValuesvalueNumber
- Selector Value Number
public static HPSelector createDisplaySetFilter(DicomObject item)
DicomObject
.
item
- DicomObject of Filter Operations Sequence (0072,0400)
public static HPSelector createImagePlaneSelector(ImagePlane[] imagePlanes)
DicomObject
, representing the according Filter
Operations Sequence (0072,0400) item, is allocated and initialized.
imagePlanes
- array of matching image planes.
public static HPSelector createAttributePresenceSelector(java.lang.String privateCreator, int tag, java.lang.String filter)
DicomObject
, representing the according Filter
Operations Sequence (0072,0400) item, is allocated and initialized.
privateCreator
- Selector Attribute Private Creator, if Selector Attribute is
contained by a Private Group, otherwise null
.tag
- Selector Attributefilter
- "PRESENT"
or "NOT_PRESENT"
public static HPSelector createAttributeValueSelector(java.lang.String privateCreator, int tag, int valueNumber, VR vr, java.lang.String[] values, FilterOp filterOp)
String
Selector Attribute Values.
A new DicomObject
, representing the according
Image Set Selector Sequence (0072,0022) item is allocated and
initialized.
privateCreator
- Selector Attribute Private Creator, if Selector Attribute is
contained by a Private Group, otherwise null
.tag
- Selector AttributevalueNumber
- Selector Value Numbervr
- Selector Attribute VR: CS, LO, LT, PN, SH, ST or UTvalues
- Selector ValuesfilterOp
- Filter-by Operator
public static HPSelector createAttributeValueSelector(java.lang.String privateCreator, int tag, int valueNumber, VR vr, int[] values, FilterOp filterOp)
int
Selector Attribute
Values. A new DicomObject
, representing the
according Image Set Selector Sequence (0072,0022) item is allocated and
initialized.
privateCreator
- Selector Attribute Private Creator, if Selector Attribute is
contained by a Private Group, otherwise null
.tag
- Selector AttributevalueNumber
- Selector Value Numbervr
- Selector Attribute VR: AT, IS, SL, SS, UL, or USvalues
- Selector ValuesfilterOp
- Filter-by Operator
public static HPSelector createAttributeValueSelector(java.lang.String privateCreator, int tag, int valueNumber, VR vr, float[] values, FilterOp filterOp)
float
Selector Attribute
Values. A new DicomObject
, representing the
according Image Set Selector Sequence (0072,0022) item is allocated and
initialized.
privateCreator
- Selector Attribute Private Creator, if Selector Attribute is
contained by a Private Group, otherwise null
.tag
- Selector AttributevalueNumber
- Selector Value Numbervr
- Selector Attribute VR: DS or FLvalues
- Selector ValuesfilterOp
- Filter-by Operator
public static HPSelector createAttributeValueSelector(java.lang.String privateCreator, int tag, int valueNumber, double[] values, FilterOp filterOp)
double
Selector Attribute
Values. A new DicomObject
, representing the
according Image Set Selector Sequence (0072,0022) item is allocated and
initialized.
privateCreator
- Selector Attribute Private Creator, if Selector Attribute is
contained by a Private Group, otherwise null
.tag
- Selector AttributevalueNumber
- Selector Value Numbervalues
- Selector ValuesfilterOp
- Filter-by Operator
public static HPSelector createCodeValueSelector(java.lang.String privateCreator, int tag, int valueNumber, Code[] values, FilterOp filterOp)
Code
Selector Attribute Values. A
new DicomObject
, representing the according
Image Set Selector Sequence (0072,0022) item, is allocated and
initialized.
privateCreator
- Selector Attribute Private Creator, if Selector Attribute is
contained by a Private Group, otherwise null
.tag
- Selector AttributevalueNumber
- Selector Value Numbervalues
- Selector ValuesfilterOp
- Filter-by Operator
public static HPSelector addSequencePointer(java.lang.String privCreator, int tag, HPSelector selector)
addFunctionalGroupPointer(java.lang.String, int, org.dcm4che2.hp.HPSelector)
. The associated
DicomObject
is updated correspondingly. If
tag = 0, the given Image Set Filter or Display Set Filter
is returned unmodified.
- Parameters:
privateCreator
- Selector Sequence Pointer Private Creator, if
Selector Sequence Pointer is contained by a Private Group,
otherwise null
.tag
- Selector Sequence Pointerselector
- Image Set Filter or Display Set Filter to decorate
- Returns:
- decorated Image Set Filter or Display Set Filter
public static HPSelector addFunctionalGroupPointer(java.lang.String privCreator, int tag, HPSelector selector)
DicomObject
is updated
correspondingly. If
tag = 0, the given Image Set Filter or Display Set Filter
is returned unmodified.
- Parameters:
privateCreator
- Functional Group Private Creator, if Functional
Group Pointer is contained by a Private Group,
otherwise null
.tag
- Functional Group Pointerselector
- Image Set Filter or Display Set Filter to decorate
- Returns:
- decorated Image Set Filter or Display Set Filter
public static HPSelector createAttributeValueSelector(java.lang.String usageFlag, java.lang.String privateCreator, int tag, int valueNumber, VR vr, int[] values, FilterOp filterOp)
int
Selector Attribute
Values and specified Image Set Selector Usage Flag (0072,0024).
A new DicomObject
, representing the according
Image Set Selector Sequence (0072,0022) item is allocated and initialized.
usageFlag
- CodeString.MATCH
or CodeString.NO_MATCH
or
null
privateCreator
- Selector Attribute Private Creator, if Selector Attribute is
contained by a Private Group, otherwise null
.tag
- Selector AttributevalueNumber
- Selector Value Numbervr
- Selector Attribute VR: AT, IS, SL, SS, UL, or USvalues
- Selector ValuesfilterOp
- Filter-by Operator
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |